From ff805b50f81da0a486ada775ba0734a0f4049ec8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 5 Feb 2006 01:45:04 +0000 Subject: [PATCH] Use getPreferredAlignmentLog. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25980 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86AsmPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index f3505fb9124..1e426643d5b 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -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!"); -- 2.34.1