summaryrefslogtreecommitdiffstats
path: root/clang/Lex
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
commit39afd571a0c95550634fc18ea94835f2a322fecd (patch)
tree3d9fefdfaf7ea91cca728e97b29a7c80a9e3b20c /clang/Lex
parent509d8d6fc6ab4eadd9d0f09045a70c1cfed4c01c (diff)
downloadbcm5719-llvm-39afd571a0c95550634fc18ea94835f2a322fecd.tar.gz
bcm5719-llvm-39afd571a0c95550634fc18ea94835f2a322fecd.zip
Avoid using macro expansions, which causes these to come out in -E mode.
llvm-svn: 43505
Diffstat (limited to 'clang/Lex')
-rw-r--r--clang/Lex/Preprocessor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp
index 8cdfe44fad1..40abfe5cfc3 100644
--- a/clang/Lex/Preprocessor.cpp
+++ b/clang/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));
}
OpenPOWER on IntegriCloud