OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce99a6e
)
Fix refacto, this code was expecting to stride past the argument prefix.
author
Daniel Dunbar
<daniel@zuster.org>
Sun, 20 Sep 2009 04:03:41 +0000
(
04:03
+0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Sun, 20 Sep 2009 04:03:41 +0000
(
04:03
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82360
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/CommandLine.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/CommandLine.cpp
b/lib/Support/CommandLine.cpp
index
e35ad93
..
7de7ba6
100644
(file)
--- a/
lib/Support/CommandLine.cpp
+++ b/
lib/Support/CommandLine.cpp
@@
-560,6
+560,7
@@
void cl::ParseCommandLineOptions(int argc, char **argv,
// rest of the name... so fall through to later processing, by
// setting up the argument name flags and value fields.
if (PGOpt && PGOpt->getFormattingFlag() == cl::Prefix) {
+ ArgName = argv[i]+1;
Value = ArgName.substr(Length);
assert(Opts.count(ArgName.substr(0, Length)) &&
Opts[ArgName.substr(0, Length)] == PGOpt);