From: Fariborz Jahanian Date: Fri, 15 Jan 2010 22:29:39 +0000 (+0000) Subject: define __weak to null in rewritten source for X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34204195de802e9d3cc8d54355b2ad4b3c27f188;p=clang define __weak to null in rewritten source for -fms-extensions as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93569 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index 9f777d616e..44a770a3ed 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/lib/Frontend/RewriteObjC.cpp @@ -618,6 +618,7 @@ void RewriteObjC::Initialize(ASTContext &context) { Preamble += "#undef __OBJC_RW_DLLIMPORT\n"; Preamble += "#undef __OBJC_RW_STATICIMPORT\n"; Preamble += "#define __attribute__(X)\n"; + Preamble += "#define __weak\n"; } else { Preamble += "#define __block\n";