Use getPreferredAlignmentLog.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-02-05 01:45:04 +00:00
parent 7d8d5a522f
commit ff805b50f8

View File

@ -92,7 +92,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
std::string name = Mang->getValueName(I);
Constant *C = I->getInitializer();
unsigned Size = TD.getTypeSize(C->getType());
unsigned Align = TD.getTypeAlignmentShift(C->getType());
unsigned Align = getPreferredAlignmentLog(I);
switch (I->getLinkage()) {
default: assert(0 && "Unknown linkage type!");