Add a dump method for ArgList.

Patch by Justin Lebar!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256009 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2015-12-18 18:55:22 +00:00
parent 3c9c3bf291
commit 8281fa7838
2 changed files with 9 additions and 0 deletions

View File

@ -306,6 +306,8 @@ public:
const char *GetOrMakeJoinedArgString(unsigned Index, StringRef LHS,
StringRef RHS) const;
void dump() const;
/// @}
};

View File

@ -328,6 +328,13 @@ const char *ArgList::GetOrMakeJoinedArgString(unsigned Index,
return MakeArgString(LHS + RHS);
}
LLVM_DUMP_METHOD void ArgList::dump() const {
for (Arg *A : *this) {
llvm::errs() << "* ";
A->dump();
}
}
//
void InputArgList::releaseMemory() {