forked from OSchip/llvm-project
[NFC] remove const from FunctionPropertiesAnalysis::run, keep on Result
The goal in 75881d8b02
was just modifying what `Result` is, didn't
need to also modify ::run.
This commit is contained in:
parent
9aa6a47973
commit
49942d595f
|
@ -68,7 +68,7 @@ public:
|
|||
|
||||
using Result = const FunctionPropertiesInfo;
|
||||
|
||||
Result run(Function &F, FunctionAnalysisManager &FAM);
|
||||
FunctionPropertiesInfo run(Function &F, FunctionAnalysisManager &FAM);
|
||||
};
|
||||
|
||||
/// Printer pass for the FunctionPropertiesAnalysis results.
|
||||
|
|
|
@ -73,7 +73,7 @@ void FunctionPropertiesInfo::print(raw_ostream &OS) const {
|
|||
|
||||
AnalysisKey FunctionPropertiesAnalysis::Key;
|
||||
|
||||
const FunctionPropertiesInfo
|
||||
FunctionPropertiesInfo
|
||||
FunctionPropertiesAnalysis::run(Function &F, FunctionAnalysisManager &FAM) {
|
||||
return FunctionPropertiesInfo::getFunctionPropertiesInfo(
|
||||
F, FAM.getResult<LoopAnalysis>(F));
|
||||
|
|
Loading…
Reference in New Issue