summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-02-02 22:57:57 +0000
committerMike Stump <mrs@apple.com>2009-02-02 22:57:57 +0000
commitf126e590429416744279d7efc9a8956af455ba43 (patch)
tree19fdeb53c5a6d4a9553518c966c9daa697c8139c
parent7cffb63a9d1d7a8d0b75b23ed2f859ede20a06a3 (diff)
downloadbcm5719-llvm-f126e590429416744279d7efc9a8956af455ba43.tar.gz
bcm5719-llvm-f126e590429416744279d7efc9a8956af455ba43.zip
Use the updated CommandLine api for -fno-blocks.
llvm-svn: 63563
-rw-r--r--clang/Driver/clang.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index fe5e7f83444..c6fee1f09e5 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -490,14 +490,15 @@ NoLaxVectorConversions("fno-lax-vector-conversions",
llvm::cl::desc("Disallow implicit conversions between "
"vectors with a different number of "
"elements or different element types"));
-static llvm::cl::opt<bool>
-EnableBlocks("fblocks", llvm::cl::desc("enable the 'blocks' language feature"), llvm::cl::ValueDisallowed);
-static llvm::cl::inverse_opt
-DisableBlocks("fno-blocks", llvm::cl::opposite_of(EnableBlocks), llvm::cl::ValueDisallowed);
+static llvm::cl::opt<bool>
+EnableBlocks("fblocks", llvm::cl::desc("enable the 'blocks' language feature"),
+ llvm::cl::ValueDisallowed, llvm::cl::AllowInverse,
+ llvm::cl::ZeroOrMore);
static llvm::cl::opt<bool>
-ObjCNonFragileABI("fobjc-nonfragile-abi", llvm::cl::desc("enable objective-c's nonfragile abi"));
+ObjCNonFragileABI("fobjc-nonfragile-abi",
+ llvm::cl::desc("enable objective-c's nonfragile abi"));
// FIXME: This (and all GCC -f options) really come in -f... and
@@ -623,7 +624,7 @@ static void InitializeLanguageStandard(LangOptions &Options, LangKind LK,
if (NoLaxVectorConversions.getPosition())
Options.LaxVectorConversions = 0;
Options.Exceptions = Exceptions;
- if (EnableBlocks.getPosition() || DisableBlocks.getPosition())
+ if (EnableBlocks.getPosition())
Options.Blocks = EnableBlocks;
// Override the default runtime if the user requested it.
OpenPOWER on IntegriCloud