From: Mike Stump Date: Mon, 2 Feb 2009 22:57:57 +0000 (+0000) Subject: Use the updated CommandLine api for -fno-blocks. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0f02aa2275431e02dd3606b12fe643c5e129e54;p=clang Use the updated CommandLine api for -fno-blocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63563 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/clang.cpp b/Driver/clang.cpp index fe5e7f8344..c6fee1f09e 100644 --- a/Driver/clang.cpp +++ b/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 -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 +EnableBlocks("fblocks", llvm::cl::desc("enable the 'blocks' language feature"), + llvm::cl::ValueDisallowed, llvm::cl::AllowInverse, + llvm::cl::ZeroOrMore); static llvm::cl::opt -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.