From abbbfd960cc0978509e060741ff8cc8db32d6b5c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Nov 2009 18:01:14 +0000 Subject: [PATCH] add some const qualifiers, patch by Kovarththanan Rajaratnam! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86260 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Analysis/Analyses/LiveVariables.h | 4 ++-- lib/Analysis/LiveVariables.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/clang/Analysis/Analyses/LiveVariables.h b/include/clang/Analysis/Analyses/LiveVariables.h index 17f772da0c..8674943960 100644 --- a/include/clang/Analysis/Analyses/LiveVariables.h +++ b/include/clang/Analysis/Analyses/LiveVariables.h @@ -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 diff --git a/lib/Analysis/LiveVariables.cpp b/lib/Analysis/LiveVariables.cpp index ae78d1f35f..df7e48dfd4 100644 --- a/lib/Analysis/LiveVariables.cpp +++ b/lib/Analysis/LiveVariables.cpp @@ -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() -- 2.40.0