[cfe-commits] r55637 - in /cfe/trunk: lib/Lex/Preprocessor.cpp test/Parser/block-block-storageclass.c
Steve Naroff
snaroff at apple.com
Tue Sep 2 11:04:36 PDT 2008
Author: snaroff
Date: Tue Sep 2 13:04:36 2008
New Revision: 55637
URL: http://llvm.org/viewvc/llvm-project?rev=55637&view=rev
Log:
Pull code from last commit. will put back soon.
Modified:
cfe/trunk/lib/Lex/Preprocessor.cpp
cfe/trunk/test/Parser/block-block-storageclass.c
Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=55637&r1=55636&r2=55637&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Tue Sep 2 13:04:36 2008
@@ -476,13 +476,6 @@
DefineBuiltinMacro(Buf, "__int64=long long");
DefineBuiltinMacro(Buf, "__declspec(X)=");
}
- if (PP.getLangOptions().Blocks) {
- DefineBuiltinMacro(Buf, "__byref=__attribute__((__blocks__(byref)))");
- DefineBuiltinMacro(Buf, "__block=__attribute__((__blocks__(byref)))");
- } else {
- DefineBuiltinMacro(Buf, "__byref=");
- DefineBuiltinMacro(Buf, "__block=");
- }
// FIXME: Should emit a #line directive here.
}
Modified: cfe/trunk/test/Parser/block-block-storageclass.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/block-block-storageclass.c?rev=55637&r1=55636&r2=55637&view=diff
==============================================================================
--- cfe/trunk/test/Parser/block-block-storageclass.c (original)
+++ cfe/trunk/test/Parser/block-block-storageclass.c Tue Sep 2 13:04:36 2008
@@ -1,5 +1,5 @@
// RUN: clang -fsyntax-only -verify -parse-noop %s
-
+#if 0
#include <stdio.h>
void _Block_byref_release(void*src){}
@@ -16,3 +16,4 @@
return X;
}
+#endif
More information about the cfe-commits
mailing list