forked from OSchip/llvm-project
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:
parent
586a15c995
commit
e4d722bf2f
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue