diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-02-21 18:40:49 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-02-21 18:40:49 +0000 |
commit | 649aa6adc4d8650033508d38d3b442d355d90824 (patch) | |
tree | b6916464a1ee07f48321e56da71d7a13bb54d0a7 /lib | |
parent | 7d81281fc39f6d40d86be6600adba13c05b4a639 (diff) |
[driver] Add a dump method for ArgList.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Driver/ArgList.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp index 0058245203..6c57b622b8 100644 --- a/lib/Driver/ArgList.cpp +++ b/lib/Driver/ArgList.cpp @@ -306,6 +306,14 @@ const char *ArgList::GetOrMakeJoinedArgString(unsigned Index, return MakeArgString(LHS + RHS); } +void ArgList::dump() { + llvm::errs() << "ArgList:"; + for (iterator it = begin(), ie = end(); it != ie; ++it) { + llvm::errs() << " " << (*it)->getSpelling(); + } + llvm::errs() << "\n"; +} + // InputArgList::InputArgList(const char* const *ArgBegin, |