aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-06 18:01:14 +0000
committerChris Lattner <sabre@nondot.org>2009-11-06 18:01:14 +0000
commitabbbfd960cc0978509e060741ff8cc8db32d6b5c (patch)
treef81c2cd8f02cf08385dc20e9e6ba33b81c1498e6
parent41a124aba77e07ab6263239bdb3df6f5feb34e13 (diff)
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
-rw-r--r--include/clang/Analysis/Analyses/LiveVariables.h4
-rw-r--r--lib/Analysis/LiveVariables.cpp4
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()