diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-06-19 00:37:39 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-06-19 00:37:39 +0000 |
commit | 9dcc0325de8df0624591b0501ec8f6409d0a7777 (patch) | |
tree | 7c3475017f78d422fa63aa958db4d8e77b8c410f /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 8cea63c5cd15d7ef30fa3a1103ca5a6dd2715a36 (diff) | |
download | bcm5719-llvm-9dcc0325de8df0624591b0501ec8f6409d0a7777.tar.gz bcm5719-llvm-9dcc0325de8df0624591b0501ec8f6409d0a7777.zip |
Sink definition of IBOutlet, IBOutletCollection, and IBAction into
the compiler predefines buffer. These are essentially part of
the Objective-C language.
llvm-svn: 158690
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index 9eb970af26c..bd08f5c09d2 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -377,6 +377,11 @@ static void InitializePredefinedMacros(const TargetInfo &TI, if (LangOpts.NeXTRuntime) Builder.defineMacro("__NEXT_RUNTIME__"); + + Builder.defineMacro("IBOutlet", "__attribute__((iboutlet))"); + Builder.defineMacro("IBOutletCollection(ClassName)", + "__attribute__((iboutletcollection(ClassName)))"); + Builder.defineMacro("IBAction", "void)__attribute__((ibaction)"); } // darwin_constant_cfstrings controls this. This is also dependent |