[driver] Add a dump method for ArgList.

llvm-svn: 175777
This commit is contained in:
Chad Rosier 2013-02-21 18:40:49 +00:00
parent 6c00a01526
commit 50f0c80341
2 changed files with 10 additions and 0 deletions

View File

@ -290,6 +290,8 @@ namespace driver {
StringRef RHS) const;
/// @}
void dump();
};
class InputArgList : public ArgList {

View File

@ -306,6 +306,14 @@ const char *ArgList::GetOrMakeJoinedArgString(unsigned Index,
return MakeArgString(LHS + RHS);
}
void ArgList::dump() {
llvm::errs() << "ArgList:";
for (iterator it = begin(), ie = end(); it != ie; ++it) {
llvm::errs() << " " << (*it)->getSpelling();
}
llvm::errs() << "\n";
}
//
InputArgList::InputArgList(const char* const *ArgBegin,