summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-06-19 00:37:39 +0000
committerTed Kremenek <kremenek@apple.com>2012-06-19 00:37:39 +0000
commit9dcc0325de8df0624591b0501ec8f6409d0a7777 (patch)
tree7c3475017f78d422fa63aa958db4d8e77b8c410f /clang/lib/Frontend/InitPreprocessor.cpp
parent8cea63c5cd15d7ef30fa3a1103ca5a6dd2715a36 (diff)
downloadbcm5719-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.cpp5
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
OpenPOWER on IntegriCloud