From 42b56eefd81531fb676159d6e5ad58d8b3a85a31 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 18 Dec 2015 18:55:22 +0000 Subject: Add a dump method for ArgList. Patch by Justin Lebar! llvm-svn: 256009 --- llvm/lib/Option/ArgList.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/lib/Option') 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() { -- cgit v1.2.3