[cfe-commits] r69135 - /cfe/trunk/test/CodeGen/cfstring2.c
Chris Lattner
sabre at nondot.org
Tue Apr 14 21:26:10 PDT 2009
Author: lattner
Date: Tue Apr 14 23:26:10 2009
New Revision: 69135
URL: http://llvm.org/viewvc/llvm-project?rev=69135&view=rev
Log:
remove #include of system header, making this a) not apple specific, and
b) test dramatically faster.
Modified:
cfe/trunk/test/CodeGen/cfstring2.c
Modified: cfe/trunk/test/CodeGen/cfstring2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/cfstring2.c?rev=69135&r1=69134&r2=69135&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/cfstring2.c (original)
+++ cfe/trunk/test/CodeGen/cfstring2.c Tue Apr 14 23:26:10 2009
@@ -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 @@
// rdar://6151192
void *G = CFSTR("yo joe");
-#endif
More information about the cfe-commits
mailing list