summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Driver/clang.cpp')
-rw-r--r--clang/Driver/clang.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index 1fec6fa3d3a..900e0a03905 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -483,6 +483,9 @@ LaxVectorConversions("flax-vector-conversions",
static llvm::cl::opt<bool>
EnableBlocks("fblocks", llvm::cl::desc("enable the 'blocks' language feature"));
+static llvm::cl::opt<bool>
+ObjCModernABI("fobjc-modern-abi", llvm::cl::desc("enable objective-c's modern abi"));
+
// FIXME: This (and all GCC -f options) really come in -f... and
// -fno-... forms, and additionally support automagic behavior when
@@ -614,6 +617,9 @@ static void InitializeLanguageStandard(LangOptions &Options, LangKind LK,
Options.NeXTRuntime = 1;
else if (GNURuntime)
Options.NeXTRuntime = 0;
+
+ if (ObjCModernABI)
+ Options.ObjCModernABI = 1;
}
static llvm::cl::opt<bool>
OpenPOWER on IntegriCloud