[cfe-commits] r122987 - in /cfe/trunk: include/clang/Basic/LangOptions.h include/clang/Driver/CC1Options.td lib/Driver/Tools.cpp lib/Frontend/CompilerInvocation.cpp test/Driver/apple-kext-mkernel.c
Douglas Gregor
dgregor at apple.com
Thu Jan 6 19:20:41 PST 2011
On Jan 6, 2011, at 5:05 PM, Fariborz Jahanian wrote:
> Author: fjahanian
> Date: Thu Jan 6 19:05:02 2011
> New Revision: 122987
>
> URL: http://llvm.org/viewvc/llvm-project?rev=122987&view=rev
> Log:
> Add all options needed to support -fapple-kext. wip.
>
> Added:
> cfe/trunk/test/Driver/apple-kext-mkernel.c
> Modified:
> cfe/trunk/include/clang/Basic/LangOptions.h
> cfe/trunk/include/clang/Driver/CC1Options.td
> cfe/trunk/lib/Driver/Tools.cpp
> cfe/trunk/lib/Frontend/CompilerInvocation.cpp
>
> Modified: cfe/trunk/include/clang/Basic/LangOptions.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/LangOptions.h?rev=122987&r1=122986&r2=122987&view=diff
> ==============================================================================
> --- cfe/trunk/include/clang/Basic/LangOptions.h (original)
> +++ cfe/trunk/include/clang/Basic/LangOptions.h Thu Jan 6 19:05:02 2011
> @@ -45,6 +45,7 @@
> unsigned ObjCNonFragileABI : 1; // Objective-C modern abi enabled
> unsigned ObjCNonFragileABI2 : 1; // Objective-C enhanced modern abi enabled
> unsigned ObjCDefaultSynthProperties : 1; // Objective-C auto-synthesized properties.
> + unsigned AppleKext : 1; // Allow apple kext features.
>
> unsigned PascalStrings : 1; // Allow Pascal strings
> unsigned WritableStrings : 1; // Allow writable strings
> @@ -156,6 +157,7 @@
> GNUMode = GNUKeywords = ImplicitInt = Digraphs = 0;
> HexFloats = 0;
> GC = ObjC1 = ObjC2 = ObjCNonFragileABI = ObjCNonFragileABI2 = 0;
> + AppleKext = 0;
> ObjCDefaultSynthProperties = 0;
> NoConstantCFStrings = 0; InlineVisibilityHidden = 0;
> C99 = Microsoft = Borland = CPlusPlus = CPlusPlus0x = 0;
Please update the AST reader and writer to handle this new bit.
> Modified: cfe/trunk/include/clang/Driver/CC1Options.td
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1Options.td?rev=122987&r1=122986&r2=122987&view=diff
> ==============================================================================
> --- cfe/trunk/include/clang/Driver/CC1Options.td (original)
> +++ cfe/trunk/include/clang/Driver/CC1Options.td Thu Jan 6 19:05:02 2011
> @@ -461,6 +461,8 @@
> HelpText<"Enable Objective-C garbage collection">;
> def fobjc_gc_only : Flag<"-fobjc-gc-only">,
> HelpText<"Use GC exclusively for Objective-C related memory management">;
> +def fapple_kext : Flag<"-fapple-kext">,
> + HelpText<"Use apple's kext abi">;
How about "Use Apple's kernel extensions ABI"?
- Doug
More information about the cfe-commits
mailing list