Fix alignment on obj_msgrefs to match llvm-gcc.

llvm-svn: 69199
This commit is contained in:
Daniel Dunbar 2009-04-15 19:04:46 +00:00
parent e60aa05d34
commit 24645c9ff4
2 changed files with 2 additions and 2 deletions

View File

@ -4989,8 +4989,7 @@ CodeGen::RValue CGObjCNonFragileABIMac::EmitMessageSend(
Name,
&CGM.getModule());
GV->setVisibility(llvm::GlobalValue::HiddenVisibility);
GV->setAlignment(
CGM.getTargetData().getPrefTypeAlignment(ObjCTypes.MessageRefTy));
GV->setAlignment(16);
GV->setSection("__DATA, __objc_msgrefs, coalesced");
UsedGlobals.push_back(GV);
}

View File

@ -35,6 +35,7 @@
// RUN: grep '@"\\01l_OBJC_LABEL_PROTOCOL_$_P" = weak hidden global .* section "__DATA, __objc_protolist, coalesced, no_dead_strip", align 8' %t &&
// RUN: grep '@"\\01l_OBJC_METACLASS_RO_$_A" = internal global .* section "__DATA, __objc_const", align 8' %t &&
// RUN: grep '@"\\01l_OBJC_PROTOCOL_$_P" = weak hidden global .* section "__DATA,__datacoal_nt,coalesced", align 8' %t &&
// RUN: grep '@"\\01l_objc_msgSend_fixup_alloc" = weak hidden global .* section "__DATA, __objc_msgrefs, coalesced", align 16' %t &&
// RUN: grep '@_objc_empty_cache = external global' %t &&
// RUN: grep '@_objc_empty_vtable = external global' %t &&