summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-01-07 01:05:02 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-01-07 01:05:02 +0000
commita4cfff87b9b1bce0b0c221096d2534e8277b39e2 (patch)
tree294feceab5edad129f6c7deb2e8845c50a78696a /clang/lib/Frontend/CompilerInvocation.cpp
parentdd47216cc4460119a7453eea880c6455d2f0fa87 (diff)
downloadbcm5719-llvm-a4cfff87b9b1bce0b0c221096d2534e8277b39e2.tar.gz
bcm5719-llvm-a4cfff87b9b1bce0b0c221096d2534e8277b39e2.zip
Add all options needed to support -fapple-kext. wip.
llvm-svn: 122987
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 48121a1770e..aa44abf19e7 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -639,6 +639,9 @@ static void LangOptsToArgs(const LangOptions &Opts,
Res.push_back("-fobjc-gc-only");
}
}
+ if (Opts.AppleKext)
+ Res.push_back("-fapple-kext");
+
if (Opts.getVisibilityMode() != DefaultVisibility) {
Res.push_back("-fvisibility");
if (Opts.getVisibilityMode() == HiddenVisibility) {
@@ -1351,7 +1354,9 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
Opts.setGCMode(LangOptions::GCOnly);
else if (Args.hasArg(OPT_fobjc_gc))
Opts.setGCMode(LangOptions::HybridGC);
-
+
+ if (Args.hasArg(OPT_fapple_kext))
+ Opts.AppleKext = 1;
if (Args.hasArg(OPT_print_ivar_layout))
Opts.ObjCGCBitmapPrint = 1;
if (Args.hasArg(OPT_fno_constant_cfstrings))
OpenPOWER on IntegriCloud