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 | 3612bc80fabcdd337f6d1df06e69b38c2c5f5a32 (patch) | |
tree | eec1f1664bb5b323321a74dee18494bcd97c20cb /lib/Driver/ArgList.cpp | |
parent | e82ec0bead14ae262cddbe958b77767a3f6aebcd (diff) |
Driver: Get rid of the proxy support in DerivedArgList.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ArgList.cpp')
-rw-r--r-- | lib/Driver/ArgList.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp index 1b6ba94400..63f1deec7f 100644 --- a/lib/Driver/ArgList.cpp +++ b/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() { |