[llvm] 1e495e1 - [NFC] change getLimitedCodeGenPipelineReason to static function
Yuanfang Chen via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 15:39:49 PDT 2020
Author: Yuanfang Chen
Date: 2020-07-06T15:39:27-07:00
New Revision: 1e495e10e6c87c2e7dd9ee7cac9352223b72006b
URL: https://github.com/llvm/llvm-project/commit/1e495e10e6c87c2e7dd9ee7cac9352223b72006b
DIFF: https://github.com/llvm/llvm-project/commit/1e495e10e6c87c2e7dd9ee7cac9352223b72006b.diff
LOG: [NFC] change getLimitedCodeGenPipelineReason to static function
Added:
Modified:
llvm/include/llvm/CodeGen/TargetPassConfig.h
llvm/lib/CodeGen/TargetPassConfig.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/TargetPassConfig.h b/llvm/include/llvm/CodeGen/TargetPassConfig.h
index 3a4c09163f32..a18c8b16bf1c 100644
--- a/llvm/include/llvm/CodeGen/TargetPassConfig.h
+++ b/llvm/include/llvm/CodeGen/TargetPassConfig.h
@@ -167,8 +167,8 @@ class TargetPassConfig : public ImmutablePass {
/// 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); }
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 241357be5394..e0fdb0cefcb8 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -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;
More information about the llvm-commits
mailing list