summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Option/ArgList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Option/ArgList.cpp')
-rw-r--r--llvm/lib/Option/ArgList.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Option/ArgList.cpp b/llvm/lib/Option/ArgList.cpp
index a37f443e56f..48f1a71d986 100644
--- a/llvm/lib/Option/ArgList.cpp
+++ b/llvm/lib/Option/ArgList.cpp
@@ -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() {
OpenPOWER on IntegriCloud