]> granicus.if.org Git - clang/commitdiff
add some const qualifiers, patch by Kovarththanan Rajaratnam!
authorChris Lattner <sabre@nondot.org>
Fri, 6 Nov 2009 18:01:14 +0000 (18:01 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 6 Nov 2009 18:01:14 +0000 (18:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86260 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/Analyses/LiveVariables.h
lib/Analysis/LiveVariables.cpp

index 17f772da0c6dae7db933fd0c27ad403fb14172ca..8674943960202ef5bf071482863d4c286fd14424 100644 (file)
@@ -88,11 +88,11 @@ public:
 
   /// dumpLiveness - Print to stderr the liveness information encoded
   ///  by a specified bitvector.
-  void dumpLiveness(const ValTy& V, SourceManager& M) const;
+  void dumpLiveness(const ValTy& V, const SourceManager& M) const;
 
   /// dumpBlockLiveness - Print to stderr the liveness information
   ///  associated with each basic block.
-  void dumpBlockLiveness(SourceManager& M) const;
+  void dumpBlockLiveness(const SourceManager& M) const;
 
   /// getNumDecls - Return the number of variables (declarations) that
   ///  whose liveness status is being tracked by the dataflow
index ae78d1f35ff646be3bdb8c7f43e4104707a5bc56..df7e48dfd4a9706488d4bd8cd3d24f59ffe8d269 100644 (file)
@@ -333,7 +333,7 @@ bool LiveVariables::isLive(const Stmt* Loc, const VarDecl* D) const {
 // printing liveness state for debugging
 //
 
-void LiveVariables::dumpLiveness(const ValTy& V, SourceManager& SM) const {
+void LiveVariables::dumpLiveness(const ValTy& V, const SourceManager& SM) const {
   const AnalysisDataTy& AD = getAnalysisData();
 
   for (AnalysisDataTy::decl_iterator I = AD.begin_decl(),
@@ -345,7 +345,7 @@ void LiveVariables::dumpLiveness(const ValTy& V, SourceManager& SM) const {
     }
 }
 
-void LiveVariables::dumpBlockLiveness(SourceManager& M) const {
+void LiveVariables::dumpBlockLiveness(const SourceManager& M) const {
   for (BlockDataMapTy::iterator I = getBlockDataMap().begin(),
        E = getBlockDataMap().end(); I!=E; ++I) {
     llvm::errs() << "\n[ B" << I->first->getBlockID()