Index: include/llvm/Option/ArgList.h =================================================================== --- include/llvm/Option/ArgList.h +++ include/llvm/Option/ArgList.h @@ -306,6 +306,8 @@ const char *GetOrMakeJoinedArgString(unsigned Index, StringRef LHS, StringRef RHS) const; + void dump() const; + /// @} }; Index: lib/Option/ArgList.cpp =================================================================== --- lib/Option/ArgList.cpp +++ lib/Option/ArgList.cpp @@ -328,6 +328,13 @@ return MakeArgString(LHS + RHS); } +LLVM_DUMP_METHOD void ArgList::dump() const { + for (Arg *A : *this) { + llvm::errs() << "* "; + A->dump(); + } +} + // void InputArgList::releaseMemory() {