From: Steve Naroff Date: Thu, 11 Dec 2008 19:43:14 +0000 (+0000) Subject: Fix clang ObjC rewriter: #include Block.h, Block_private... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fa72ef7e8b3ade80ecc0965b26e03f9992b2053;p=clang Fix clang ObjC rewriter: #include Block.h, Block_private.h or come up with #define to prevent double-definition git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60890 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/RewriteObjC.cpp b/Driver/RewriteObjC.cpp index e071cb904e..dd04a12d35 100644 --- a/Driver/RewriteObjC.cpp +++ b/Driver/RewriteObjC.cpp @@ -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";