forked from OSchip/llvm-project
Constify the 'dump' method so that it can be called by a const object.
llvm-svn: 182620
This commit is contained in:
parent
477d86d84d
commit
4814317516
|
@ -300,7 +300,7 @@ namespace driver {
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
void dump();
|
void dump() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class InputArgList : public ArgList {
|
class InputArgList : public ArgList {
|
||||||
|
|
|
@ -321,11 +321,10 @@ const char *ArgList::GetOrMakeJoinedArgString(unsigned Index,
|
||||||
return MakeArgString(LHS + RHS);
|
return MakeArgString(LHS + RHS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArgList::dump() {
|
void ArgList::dump() const {
|
||||||
llvm::errs() << "ArgList:";
|
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() << " " << (*it)->getSpelling();
|
||||||
}
|
|
||||||
llvm::errs() << "\n";
|
llvm::errs() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue