Fix <rdar://problem/6435842> clang ObjC rewriter: #include Block.h, Block_private.h or come up with #define to prevent double-definition

llvm-svn: 60890
This commit is contained in:
Steve Naroff 2008-12-11 19:43:14 +00:00
parent 586a15c995
commit e4d722bf2f
1 changed files with 0 additions and 4 deletions

View File

@ -537,10 +537,6 @@ void RewriteObjC::Initialize(ASTContext &context) {
Preamble += " int Size;\n";
Preamble += " void *FuncPtr;\n";
Preamble += "};\n";
Preamble += "enum {\n";
Preamble += " BLOCK_HAS_COPY_DISPOSE = (1<<25),\n";
Preamble += " BLOCK_IS_GLOBAL = (1<<28)\n";
Preamble += "};\n";
Preamble += "// Runtime copy/destroy helper functions\n";
Preamble += "__OBJC_RW_STATICIMPORT void _Block_copy_assign(void *, void *);\n";
Preamble += "__OBJC_RW_STATICIMPORT void _Block_byref_assign_copy(void *, void *);\n";