summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/OptTable.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-09 22:31:00 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-09 22:31:00 +0000
commit8f1ebabaf720e05a87fd38d1dfa2fecf52b839c4 (patch)
tree8719ab7954ed13745f22387cb1913d7aac5b361d /clang/lib/Driver/OptTable.cpp
parent0bcb62dc307a90ed7fc0e4f83c11498f575e148c (diff)
downloadbcm5719-llvm-8f1ebabaf720e05a87fd38d1dfa2fecf52b839c4.tar.gz
bcm5719-llvm-8f1ebabaf720e05a87fd38d1dfa2fecf52b839c4.zip
Driver: Change Arg to just hold the values directly, instead of implicitly
deriving them from the Arg type. llvm-svn: 105760
Diffstat (limited to 'clang/lib/Driver/OptTable.cpp')
-rw-r--r--clang/lib/Driver/OptTable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Driver/OptTable.cpp b/clang/lib/Driver/OptTable.cpp
index de1e4592b34..1f913e34bad 100644
--- a/clang/lib/Driver/OptTable.cpp
+++ b/clang/lib/Driver/OptTable.cpp
@@ -188,7 +188,7 @@ Arg *OptTable::ParseOneArg(const InputArgList &Args, unsigned &Index) const {
// Anything that doesn't start with '-' is an input, as is '-' itself.
if (Str[0] != '-' || Str[1] == '\0')
- return new PositionalArg(TheInputOption, Index++);
+ return new PositionalArg(TheInputOption, Index++, Str);
const Info *Start = OptionInfos + FirstSearchableIndex;
const Info *End = OptionInfos + getNumOptions();
@@ -221,7 +221,7 @@ Arg *OptTable::ParseOneArg(const InputArgList &Args, unsigned &Index) const {
return 0;
}
- return new PositionalArg(TheUnknownOption, Index++);
+ return new PositionalArg(TheUnknownOption, Index++, Str);
}
InputArgList *OptTable::ParseArgs(const char **ArgBegin, const char **ArgEnd,
OpenPOWER on IntegriCloud