mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
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:
parent
3c9c3bf291
commit
8281fa7838
@ -306,6 +306,8 @@ public:
|
||||
const char *GetOrMakeJoinedArgString(unsigned Index, StringRef LHS,
|
||||
StringRef RHS) const;
|
||||
|
||||
void dump() const;
|
||||
|
||||
/// @}
|
||||
};
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user