forked from OSchip/llvm-project
add some const qualifiers, patch by Kovarththanan Rajaratnam!
llvm-svn: 86260
This commit is contained in:
parent
cc11371b77
commit
45540e91d1
|
@ -88,11 +88,11 @@ public:
|
||||||
|
|
||||||
/// dumpLiveness - Print to stderr the liveness information encoded
|
/// dumpLiveness - Print to stderr the liveness information encoded
|
||||||
/// by a specified bitvector.
|
/// 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
|
/// dumpBlockLiveness - Print to stderr the liveness information
|
||||||
/// associated with each basic block.
|
/// associated with each basic block.
|
||||||
void dumpBlockLiveness(SourceManager& M) const;
|
void dumpBlockLiveness(const SourceManager& M) const;
|
||||||
|
|
||||||
/// getNumDecls - Return the number of variables (declarations) that
|
/// getNumDecls - Return the number of variables (declarations) that
|
||||||
/// whose liveness status is being tracked by the dataflow
|
/// whose liveness status is being tracked by the dataflow
|
||||||
|
|
|
@ -333,7 +333,7 @@ bool LiveVariables::isLive(const Stmt* Loc, const VarDecl* D) const {
|
||||||
// printing liveness state for debugging
|
// 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();
|
const AnalysisDataTy& AD = getAnalysisData();
|
||||||
|
|
||||||
for (AnalysisDataTy::decl_iterator I = AD.begin_decl(),
|
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(),
|
for (BlockDataMapTy::iterator I = getBlockDataMap().begin(),
|
||||||
E = getBlockDataMap().end(); I!=E; ++I) {
|
E = getBlockDataMap().end(); I!=E; ++I) {
|
||||||
llvm::errs() << "\n[ B" << I->first->getBlockID()
|
llvm::errs() << "\n[ B" << I->first->getBlockID()
|
||||||
|
|
Loading…
Reference in New Issue