[NFC] change getLimitedCodeGenPipelineReason to static function

This commit is contained in:
Yuanfang Chen 2020-07-06 15:10:54 -07:00
parent fc4f5d6584
commit 1e495e10e6
2 changed files with 3 additions and 3 deletions

View 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); }

View 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;