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 | dac54a81df89223b6887408d9427501603d8648d (patch) | |
tree | 9bc9a6b8b42475cc1d67aa5cb9ccd4d6587abb45 /clang/lib/Driver/OptTable.cpp | |
parent | 68b0881d94f3b46d173038865b9fc02eb9b5f5d7 (diff) | |
download | llvm-dac54a81df89223b6887408d9427501603d8648d.zip llvm-dac54a81df89223b6887408d9427501603d8648d.tar.gz llvm-dac54a81df89223b6887408d9427501603d8648d.tar.bz2 |
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).
llvm-svn: 67676
Diffstat (limited to 'clang/lib/Driver/OptTable.cpp')
-rw-r--r-- | clang/lib/Driver/OptTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/OptTable.cpp b/clang/lib/Driver/OptTable.cpp index 4524ece..baaa886f 100644 --- a/clang/lib/Driver/OptTable.cpp +++ b/clang/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); |