]> granicus.if.org Git - clang/commit
IRgen/NeXT: Fix several alignment issues with Objective-C metadata symbols:
authorDaniel Dunbar <daniel@zuster.org>
Sun, 25 Apr 2010 20:39:32 +0000 (20:39 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 25 Apr 2010 20:39:32 +0000 (20:39 +0000)
commit4b429ae34d80dd21661c91009c559746e553bc1e
tree711a37134deb4ecad694c653255282d2dfbec010
parent94e67c6180f9087a3ca50c4c84d3fefa5400f58e
IRgen/NeXT: Fix several alignment issues with Objective-C metadata symbols:
 - Fix some places that had the alignment hard coded.
 - Use ABI type alignment, not preferred type alignment -- neither of this is exactly right, as we really want the C type alignment as required by the runtime, but the ABI alignment is a more correct choice.

This should be equivalent for x86_64, but fixes the alignment for ARM.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102314 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjCMac.cpp
test/CodeGenObjC/metadata_symbols.m