Constify the Optnone checks in IR passes.
[oota-llvm.git] / include / llvm / Pass.h
index e16144397c447aa2de3401fc7db94c731720ea0e..bfe57724d7ba70585d17da3296e1a11d9ef22217 100644 (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