diff options
| author | Bill Wendling <isanbard@gmail.com> | 2011-05-04 21:37:25 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2011-05-04 21:37:25 +0000 |
| commit | f7d4598b74962fe5fd1a9984621aefd13f76109d (patch) | |
| tree | b4748d5fc4c63765c722c10d8a06df0d52933de1 /clang/lib | |
| parent | 0daa07eb900ddbd6eaf321c01dee8f047af00fff (diff) | |
| download | bcm5719-llvm-f7d4598b74962fe5fd1a9984621aefd13f76109d.tar.gz bcm5719-llvm-f7d4598b74962fe5fd1a9984621aefd13f76109d.zip | |
Pack ivar offsets together.
Ivar offsets for synthesized ivars are wrong, which could end up with a large
number of dirty pages because of ivar fixups at runtime. When we pack all of the
synthesized ivars into the same section, it limits the number of dirty pages
created. Place them in the "__DATA,__objc_ivar" section.
<rdar://problem/9374905>
llvm-svn: 130870
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 2b1cfe3da5b..0675f0df059 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -5209,7 +5209,7 @@ CGObjCNonFragileABIMac::EmitIvarOffsetVar(const ObjCInterfaceDecl *ID, IvarOffsetGV->setVisibility(llvm::GlobalValue::HiddenVisibility); else IvarOffsetGV->setVisibility(llvm::GlobalValue::DefaultVisibility); - IvarOffsetGV->setSection("__DATA, __objc_const"); + IvarOffsetGV->setSection("__DATA, __objc_ivar"); return IvarOffsetGV; } |

