[llvm-commits] CVS: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
Rafael Espindola
rafael.espindola at gmail.com
Thu Dec 7 14:38:23 PST 2006
Changes in directory llvm/lib/Target/ARM:
ARMAsmPrinter.cpp updated: 1.35 -> 1.36
---
Log message:
fix alignment
---
Diffs of the changes: (+3 -3)
ARMAsmPrinter.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
diff -u llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.35 llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.36
--- llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.35 Thu Dec 7 16:21:48 2006
+++ llvm/lib/Target/ARM/ARMAsmPrinter.cpp Thu Dec 7 16:38:06 2006
@@ -292,7 +292,7 @@
std::string name = Mang->getValueName(I);
Constant *C = I->getInitializer();
unsigned Size = TD->getTypeSize(C->getType());
- unsigned Align = TD->getTypeAlignment(C->getType());
+ unsigned Align = Log2_32(TD->getTypeAlignment(C->getType()));
if (C->isNullValue() &&
!I->hasSection() &&
@@ -302,8 +302,8 @@
if (I->hasInternalLinkage())
O << "\t.local " << name << "\n";
- O << "\t.comm " << name << "," << TD->getTypeSize(C->getType())
- << "," << (unsigned)TD->getTypeAlignment(C->getType());
+ O << "\t.comm " << name << "," << Size
+ << "," << (unsigned)Align;
O << "\n";
} else {
switch (I->getLinkage()) {
More information about the llvm-commits
mailing list