summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-02-06 17:15:17 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-02-06 17:15:17 +0000
commitf5b7f16259795c557bdd41768a171fd9e9b28f22 (patch)
treeca27d1c1b21fdc3d6872f137fa63bdb7490438f2 /llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
parent85263234a82e6a5e4e938666245c80951cfa1d06 (diff)
downloadbcm5719-llvm-f5b7f16259795c557bdd41768a171fd9e9b28f22.tar.gz
bcm5719-llvm-f5b7f16259795c557bdd41768a171fd9e9b28f22.zip
see what this allignment thing will do
llvm-svn: 26017
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
index 3d88bc4fb61..cc1acd2575a 100644
--- a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
@@ -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() ||
OpenPOWER on IntegriCloud