Constify the Optnone checks in IR passes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Paul Robinson
2014-02-26 01:23:26 +00:00
parent 204755b283
commit cf84b5ba5e
4 changed files with 8 additions and 8 deletions

View File

@@ -311,7 +311,7 @@ public:
protected:
/// skipOptnoneFunction - This function has Attribute::OptimizeNone
/// and most transformation passes should skip it.
bool skipOptnoneFunction(Function &F) const;
bool skipOptnoneFunction(const Function &F) const;
};
@@ -360,7 +360,7 @@ public:
protected:
/// skipOptnoneFunction - Containing function has Attribute::OptimizeNone
/// and most transformation passes should skip it.
bool skipOptnoneFunction(BasicBlock &BB) const;
bool skipOptnoneFunction(const BasicBlock &BB) const;
};
/// If the user specifies the -time-passes argument on an LLVM tool command line