[cfe-commits] r86260 - in /cfe/trunk: include/clang/Analysis/Analyses/LiveVariables.h lib/Analysis/LiveVariables.cpp

Chris Lattner sabre at nondot.org
Fri Nov 6 10:01:15 PST 2009


Author: lattner
Date: Fri Nov  6 12:01:14 2009
New Revision: 86260

URL: http://llvm.org/viewvc/llvm-project?rev=86260&view=rev
Log:
add some const qualifiers, patch by Kovarththanan Rajaratnam!

Modified:
    cfe/trunk/include/clang/Analysis/Analyses/LiveVariables.h
    cfe/trunk/lib/Analysis/LiveVariables.cpp

Modified: cfe/trunk/include/clang/Analysis/Analyses/LiveVariables.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/LiveVariables.h?rev=86260&r1=86259&r2=86260&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/Analyses/LiveVariables.h (original)
+++ cfe/trunk/include/clang/Analysis/Analyses/LiveVariables.h Fri Nov  6 12:01:14 2009
@@ -88,11 +88,11 @@
 
   /// 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

Modified: cfe/trunk/lib/Analysis/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/LiveVariables.cpp?rev=86260&r1=86259&r2=86260&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/LiveVariables.cpp (original)
+++ cfe/trunk/lib/Analysis/LiveVariables.cpp Fri Nov  6 12:01:14 2009
@@ -333,7 +333,7 @@
 // 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::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()





More information about the cfe-commits mailing list