OSDN Git Service

[NFC] change getLimitedCodeGenPipelineReason to static function
authorYuanfang Chen <yuanfang.chen@sony.com>
Mon, 6 Jul 2020 22:10:54 +0000 (15:10 -0700)
committerYuanfang Chen <yuanfang.chen@sony.com>
Mon, 6 Jul 2020 22:39:27 +0000 (15:39 -0700)
llvm/include/llvm/CodeGen/TargetPassConfig.h
llvm/lib/CodeGen/TargetPassConfig.cpp

index 3a4c091..a18c8b1 100644 (file)
@@ -167,8 +167,8 @@ public:
   /// If hasLimitedCodeGenPipeline is true, this method
   /// returns a string with the name of the options, separated
   /// by \p Separator that caused this pipeline to be limited.
-  std::string
-  getLimitedCodeGenPipelineReason(const char *Separator = "/") const;
+  static std::string
+  getLimitedCodeGenPipelineReason(const char *Separator = "/");
 
   void setDisableVerify(bool Disable) { setOpt(DisableVerify, Disable); }
 
index 241357b..e0fdb0c 100644 (file)
@@ -472,7 +472,7 @@ bool TargetPassConfig::hasLimitedCodeGenPipeline() {
 }
 
 std::string
-TargetPassConfig::getLimitedCodeGenPipelineReason(const char *Separator) const {
+TargetPassConfig::getLimitedCodeGenPipelineReason(const char *Separator) {
   if (!hasLimitedCodeGenPipeline())
     return std::string();
   std::string Res;