diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-06-11 22:00:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-06-11 22:00:22 +0000 |
commit | 5c5d30b03a183879c43f1194d4c6187563f9c45e (patch) | |
tree | f4bf4025627ea427c5c93d7a023aa60ad48639b3 /clang/lib/Driver/ArgList.cpp | |
parent | 18974bdc68ff8123f48526cde7b83881fdaffd47 (diff) | |
download | bcm5719-llvm-5c5d30b03a183879c43f1194d4c6187563f9c45e.tar.gz bcm5719-llvm-5c5d30b03a183879c43f1194d4c6187563f9c45e.zip |
Driver: Get rid of the proxy support in DerivedArgList.
llvm-svn: 105841
Diffstat (limited to 'clang/lib/Driver/ArgList.cpp')
-rw-r--r-- | clang/lib/Driver/ArgList.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/lib/Driver/ArgList.cpp b/clang/lib/Driver/ArgList.cpp index 1b6ba94400a..63f1deec7f5 100644 --- a/clang/lib/Driver/ArgList.cpp +++ b/clang/lib/Driver/ArgList.cpp @@ -36,7 +36,7 @@ void arg_iterator::SkipToNextArg() { // -ArgList::ArgList(arglist_type &_Args) : Args(_Args) { +ArgList::ArgList() { } ArgList::~ArgList() { @@ -205,7 +205,7 @@ const char *ArgList::GetOrMakeJoinedArgString(unsigned Index, // InputArgList::InputArgList(const char **ArgBegin, const char **ArgEnd) - : ArgList(ActualArgs), NumInputArgStrings(ArgEnd - ArgBegin) { + : NumInputArgStrings(ArgEnd - ArgBegin) { ArgStrings.append(ArgBegin, ArgEnd); } @@ -240,9 +240,10 @@ const char *InputArgList::MakeArgString(llvm::StringRef Str) const { // -DerivedArgList::DerivedArgList(InputArgList &_BaseArgs, bool _OnlyProxy) - : ArgList(_OnlyProxy ? _BaseArgs.getArgs() : ActualArgs), - BaseArgs(_BaseArgs), OnlyProxy(_OnlyProxy) { +DerivedArgList::DerivedArgList(InputArgList &_BaseArgs, bool OnlyProxy) + : BaseArgs(_BaseArgs) { + if (OnlyProxy) + getArgs() = _BaseArgs.getArgs(); } DerivedArgList::~DerivedArgList() { |