see what this allignment thing will do
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 6 Feb 2006 17:15:17 +0000 (17:15 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 6 Feb 2006 17:15:17 +0000 (17:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26017 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaAsmPrinter.cpp

index 3d88bc4fb6122ec1ef1a2fa1bed5c9c4a7dec8b1..cc1acd2575a9a1b0eaab8d8a1c2336e1c5fb8bd1 100644 (file)
@@ -235,7 +235,8 @@ bool AlphaAsmPrinter::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 = TD.getTypeAlignmentShift(C->getType());
+      unsigned Align = getPreferredAlignmentLog(I);
 
       if (C->isNullValue() &&
           (I->hasLinkOnceLinkage() || I->hasInternalLinkage() ||