add some const qualifiers, patch by Kovarththanan Rajaratnam!

llvm-svn: 86260
This commit is contained in:
Chris Lattner 2009-11-06 18:01:14 +00:00
parent cc11371b77
commit 45540e91d1
2 changed files with 4 additions and 4 deletions

View 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

View 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()