Skip to content

Commit f126e59

Browse files
author
Mike Stump
committed
Use the updated CommandLine api for -fno-blocks.
llvm-svn: 63563
1 parent 7cffb63 commit f126e59

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

clang/Driver/clang.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,14 +490,15 @@ NoLaxVectorConversions("fno-lax-vector-conversions",
490490
llvm::cl::desc("Disallow implicit conversions between "
491491
"vectors with a different number of "
492492
"elements or different element types"));
493-
static llvm::cl::opt<bool>
494-
EnableBlocks("fblocks", llvm::cl::desc("enable the 'blocks' language feature"), llvm::cl::ValueDisallowed);
495493

496-
static llvm::cl::inverse_opt
497-
DisableBlocks("fno-blocks", llvm::cl::opposite_of(EnableBlocks), llvm::cl::ValueDisallowed);
494+
static llvm::cl::opt<bool>
495+
EnableBlocks("fblocks", llvm::cl::desc("enable the 'blocks' language feature"),
496+
llvm::cl::ValueDisallowed, llvm::cl::AllowInverse,
497+
llvm::cl::ZeroOrMore);
498498

499499
static llvm::cl::opt<bool>
500-
ObjCNonFragileABI("fobjc-nonfragile-abi", llvm::cl::desc("enable objective-c's nonfragile abi"));
500+
ObjCNonFragileABI("fobjc-nonfragile-abi",
501+
llvm::cl::desc("enable objective-c's nonfragile abi"));
501502

502503

503504
// FIXME: This (and all GCC -f options) really come in -f... and
@@ -623,7 +624,7 @@ static void InitializeLanguageStandard(LangOptions &Options, LangKind LK,
623624
if (NoLaxVectorConversions.getPosition())
624625
Options.LaxVectorConversions = 0;
625626
Options.Exceptions = Exceptions;
626-
if (EnableBlocks.getPosition() || DisableBlocks.getPosition())
627+
if (EnableBlocks.getPosition())
627628
Options.Blocks = EnableBlocks;
628629

629630
// Override the default runtime if the user requested it.

0 commit comments

Comments
 (0)