Constify the 'dump' method so that it can be called by a const object.

llvm-svn: 182620
This commit is contained in:
Bill Wendling 2013-05-23 23:10:23 +00:00
parent 477d86d84d
commit 4814317516
2 changed files with 3 additions and 4 deletions

View File

@ -300,7 +300,7 @@ namespace driver {
/// @}
void dump();
void dump() const;
};
class InputArgList : public ArgList {

View File

@ -321,11 +321,10 @@ const char *ArgList::GetOrMakeJoinedArgString(unsigned Index,
return MakeArgString(LHS + RHS);
}
void ArgList::dump() {
void ArgList::dump() const {
llvm::errs() << "ArgList:";
for (iterator it = begin(), ie = end(); it != ie; ++it) {
for (const_iterator it = begin(), ie = end(); it != ie; ++it)
llvm::errs() << " " << (*it)->getSpelling();
}
llvm::errs() << "\n";
}