diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-25 04:13:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-25 04:13:45 +0000 |
commit | f3cad36e59a41b5767fe662b5ac8911ee174b801 (patch) | |
tree | 63dc6f58c11d1e55925b68a3bf76eeb5c047e70d /lib/Driver/OptTable.cpp | |
parent | 515455ac32e2accac51c33ceaa7e2dd7c36ef3f2 (diff) |
Driver: Prep for tool chain specific argument translation.
- Lift ArgList to a base class for InputArgList and DerivedArgList.
- This is not a great decomposition, but it does embed the
translation into the type system, and keep things efficient for
tool chains that don't want to do any translation.
- No intended functionality change.
Eventually I hope to get rid of tool chain specific translation and
have each tool do the right thing, but for now this is the easiest way
to match gcc precisely (which is good for testing).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/OptTable.cpp')
-rw-r--r-- | lib/Driver/OptTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/OptTable.cpp b/lib/Driver/OptTable.cpp index 4524ecedd4..baaa886fec 100644 --- a/lib/Driver/OptTable.cpp +++ b/lib/Driver/OptTable.cpp @@ -208,7 +208,7 @@ static inline bool operator<(const char *Name, struct Info &I) { return StrCmpOptionName(Name, I.Name) == -1; } -Arg *OptTable::ParseOneArg(const ArgList &Args, unsigned &Index) const { +Arg *OptTable::ParseOneArg(const InputArgList &Args, unsigned &Index) const { unsigned Prev = Index; const char *Str = Args.getArgString(Index); |