forked from OSchip/llvm-project
[NFC] change getLimitedCodeGenPipelineReason to static function
This commit is contained in:
parent
fc4f5d6584
commit
1e495e10e6
|
@ -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); }
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue