[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Dale Johannesen
dalej at apple.com
Mon Apr 23 16:33:48 PDT 2007
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.155 -> 1.156
---
Log message:
modify per review commentary
---
Diffs of the changes: (+2 -2)
AsmPrinter.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.155 llvm/lib/CodeGen/AsmPrinter.cpp:1.156
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.155 Mon Apr 23 14:58:54 2007
+++ llvm/lib/CodeGen/AsmPrinter.cpp Mon Apr 23 18:33:31 2007
@@ -582,8 +582,8 @@
// Use the maximum of the specified alignment and the alignment from the
// specified GlobalValue (if any).
void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV) const {
- if (GV && GV->getAlignment() && Log2_32(GV->getAlignment()) > NumBits)
- NumBits = Log2_32(GV->getAlignment());
+ if (GV && GV->getAlignment())
+ NumBits = std::max(NumBits, Log2_32(GV->getAlignment()));
if (NumBits == 0) return; // No need to emit alignment.
if (TAI->getAlignmentIsInBytes()) NumBits = 1 << NumBits;
O << TAI->getAlignDirective() << NumBits << "\n";
More information about the llvm-commits
mailing list