diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-01-15 22:29:39 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-01-15 22:29:39 +0000 |
commit | 34204195de802e9d3cc8d54355b2ad4b3c27f188 (patch) | |
tree | ae52645f33a958d7e56d81c62444dd4d2c454edd /lib/Frontend/RewriteObjC.cpp | |
parent | 283cae37b03047c14ef918503bc46b08405c3b69 (diff) |
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
Diffstat (limited to 'lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | lib/Frontend/RewriteObjC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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"; |