diff options
author | Steve Naroff <snaroff@apple.com> | 2008-12-11 19:43:14 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-12-11 19:43:14 +0000 |
commit | 9fa72ef7e8b3ade80ecc0965b26e03f9992b2053 (patch) | |
tree | 013bf6a2b006b2aea1d9040ed10147a9215aa745 | |
parent | 61364dddc33383e62cfe3b841dbc0f471280d95b (diff) |
Fix <rdar://problem/6435842> 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
-rw-r--r-- | Driver/RewriteObjC.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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"; |