aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-24 00:20:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-24 00:20:13 +0000
commitd3dfdb8d98c39b400894e40ee679c1e7a3a57bf5 (patch)
tree90d17fe11eb9b8d2f873cb824cff859a0bc56204
parent03b2b07aaef3a585aec13048a33356c7f635de72 (diff)
ccc/Driver: -r option doesn't take an argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67581 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Driver/Options.def2
-rw-r--r--tools/ccc/ccclib/Arguments.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Driver/Options.def b/include/clang/Driver/Options.def
index a5f3ee5ea1..7b527427e9 100644
--- a/include/clang/Driver/Options.def
+++ b/include/clang/Driver/Options.def
@@ -517,7 +517,7 @@ OPTION("-pthread", pthread, Flag, INVALID, INVALID, "", 0)
OPTION("-p", p, Flag, INVALID, INVALID, "", 0)
OPTION("-read_only_relocs", read__only__relocs, Separate, INVALID, INVALID, "", 0)
OPTION("-remap", remap, Flag, INVALID, INVALID, "", 0)
-OPTION("-r", r, JoinedOrSeparate, INVALID, INVALID, "", 0)
+OPTION("-r", r, Flag, INVALID, INVALID, "", 0)
OPTION("-save-temps", save_temps, Flag, INVALID, INVALID, "d", 0)
OPTION("-sectalign", sectalign, MultiArg, INVALID, INVALID, "", 3)
OPTION("-sectcreate", sectcreate, MultiArg, INVALID, INVALID, "", 3)
diff --git a/tools/ccc/ccclib/Arguments.py b/tools/ccc/ccclib/Arguments.py
index d4d97217d5..958dd38b65 100644
--- a/tools/ccc/ccclib/Arguments.py
+++ b/tools/ccc/ccclib/Arguments.py
@@ -714,7 +714,7 @@ class OptionParser:
self.emitLLVMOption = self.addOption(FlagOption('-emit-llvm'))
self.eOption = self.addOption(JoinedOrSeparateOption('-e'))
- self.rOption = self.addOption(JoinedOrSeparateOption('-r'))
+ self.rOption = self.addOption(FlagOption('-r'))
self.pgOption = self.addOption(FlagOption('-pg'))
self.pOption = self.addOption(FlagOption('-p'))