aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-30 17:45:43 +0000
committerChris Lattner <sabre@nondot.org>2007-10-30 17:45:43 +0000
commitd65d8eea9f4d576a1101255eb1b16db84d0ce3ae (patch)
tree585a4054600d6e0e2a17bea1344620cf5476d959
parentc2939bc82ce177c0413feb0cd9ce70aefd6235fb (diff)
Avoid using macro expansions, which causes these to come out in -E mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43505 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Lex/Preprocessor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lex/Preprocessor.cpp b/Lex/Preprocessor.cpp
index 8cdfe44fad..40abfe5cfc 100644
--- a/Lex/Preprocessor.cpp
+++ b/Lex/Preprocessor.cpp
@@ -392,22 +392,22 @@ static void InitializePredefinedMacros(Preprocessor &PP,
DefineBuiltinMacro(Buf, "NO=(BOOL)0");
DefineBuiltinMacro(Buf, "Nil=0");
DefineBuiltinMacro(Buf, "nil=0");
- ObjcType = "OBJC_EXPORT const char *sel_getName(SEL sel);\n";
+ ObjcType = "extern const char *sel_getName(SEL sel);\n";
Buf.insert(Buf.end(), ObjcType, ObjcType+strlen(ObjcType));
- ObjcType = "OBJC_EXPORT SEL sel_getUid(const char *str);\n";
+ ObjcType = "extern SEL sel_getUid(const char *str);\n";
Buf.insert(Buf.end(), ObjcType, ObjcType+strlen(ObjcType));
// Predefine ObjC primitive functions, traditionally declared in
// <objc/objc-runtime.h>. Unlike the declarations above, we don't protect
// these with a header guard (since multiple identical function declarations
// don't result in an error. FIXME: don't predefine these...
- ObjcType = "OBJC_EXPORT id objc_getClass(const char *name);\n";
+ ObjcType = "extern id objc_getClass(const char *name);\n";
Buf.insert(Buf.end(), ObjcType, ObjcType+strlen(ObjcType));
- ObjcType = "OBJC_EXPORT id objc_getMetaClass(const char *name);\n";
+ ObjcType = "extern id objc_getMetaClass(const char *name);\n";
Buf.insert(Buf.end(), ObjcType, ObjcType+strlen(ObjcType));
- ObjcType = "OBJC_EXPORT id objc_msgSend(id self, SEL op, ...);\n";
+ ObjcType = "extern id objc_msgSend(id self, SEL op, ...);\n";
Buf.insert(Buf.end(), ObjcType, ObjcType+strlen(ObjcType));
- ObjcType = "OBJC_EXPORT id objc_msgSendSuper(struct objc_super *super, SEL op, ...);\n";
+ ObjcType = "extern id objc_msgSendSuper(struct objc_super *super, SEL op, ...);\n";
Buf.insert(Buf.end(), ObjcType, ObjcType+strlen(ObjcType));
}