aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-15 04:26:10 +0000
committerChris Lattner <sabre@nondot.org>2009-04-15 04:26:10 +0000
commit372de1d26bb2e930d6eb02c62e09bb08a35cb984 (patch)
tree75231b5afb178edbe3ad07f2439862abad87c1b1
parentd7c62b1929b024047a06697d2fedbd4c2e7d0cdf (diff)
remove #include of system header, making this a) not apple specific, and
b) test dramatically faster. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69135 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/cfstring2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/cfstring2.c b/test/CodeGen/cfstring2.c
index 7b808b4aab..ceefeb9e83 100644
--- a/test/CodeGen/cfstring2.c
+++ b/test/CodeGen/cfstring2.c
@@ -1,7 +1,8 @@
// RUN: clang-cc -emit-llvm %s -o %t
-#ifdef __APPLE__
-#include <Carbon/Carbon.h>
+typedef const struct __CFString * CFStringRef;
+
+#define CFSTR(x) (CFStringRef) __builtin___CFStringMakeConstantString (x)
void f() {
CFSTR("Hello, World!");
@@ -10,4 +11,3 @@ void f() {
// rdar://6151192
void *G = CFSTR("yo joe");
-#endif