[cfe-commits] r63563 - /cfe/trunk/Driver/clang.cpp
Mike Stump
mrs at apple.com
Mon Feb 2 14:57:57 PST 2009
Author: mrs
Date: Mon Feb 2 16:57:57 2009
New Revision: 63563
URL: http://llvm.org/viewvc/llvm-project?rev=63563&view=rev
Log:
Use the updated CommandLine api for -fno-blocks.
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=63563&r1=63562&r2=63563&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Mon Feb 2 16:57:57 2009
@@ -490,14 +490,15 @@
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 @@
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.
More information about the cfe-commits
mailing list