aboutsummaryrefslogtreecommitdiff
path: root/tools/clang-cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-cc')
-rw-r--r--tools/clang-cc/clang-cc.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp
index a8836887a7..5ef2bf6c34 100644
--- a/tools/clang-cc/clang-cc.cpp
+++ b/tools/clang-cc/clang-cc.cpp
@@ -628,6 +628,11 @@ static llvm::cl::opt<bool>
ObjCNonFragileABI("fobjc-nonfragile-abi",
llvm::cl::desc("enable objective-c's nonfragile abi"));
+
+static llvm::cl::opt<bool>
+ObjCTightLayout("fobjc-tight-layout",
+ llvm::cl::desc("enable tight objective-c interface layout"));
+
static llvm::cl::opt<bool>
EmitAllDecls("femit-all-decls",
llvm::cl::desc("Emit all declarations, even if unused"));
@@ -843,6 +848,9 @@ static void InitializeLanguageStandard(LangOptions &Options, LangKind LK,
if (ObjCNonFragileABI)
Options.ObjCNonFragileABI = 1;
+
+ if (ObjCTightLayout)
+ Options.ObjCTightLayout = 1;
if (EmitAllDecls)
Options.EmitAllDecls = 1;