[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp
Jim Laskey
jlaskey at apple.com
Wed Jan 24 05:12:50 PST 2007
Changes in directory llvm/lib/CodeGen:
DwarfWriter.cpp updated: 1.111 -> 1.112
---
Log message:
Use asm printer to emit alignment
---
Diffs of the changes: (+2 -8)
DwarfWriter.cpp | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.111 llvm/lib/CodeGen/DwarfWriter.cpp:1.112
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.111 Mon Jan 8 16:15:18 2007
+++ llvm/lib/CodeGen/DwarfWriter.cpp Wed Jan 24 07:12:32 2007
@@ -945,12 +945,6 @@
O << "\n";
}
- /// EmitAlign - Print a align directive.
- ///
- void EmitAlign(unsigned Alignment) const {
- O << TAI->getAlignDirective() << Alignment << "\n";
- }
-
/// EmitULEB128Bytes - Emit an assembler byte data directive to compose an
/// unsigned leb128 value.
void EmitULEB128Bytes(unsigned Value) const {
@@ -2444,7 +2438,7 @@
EmitFrameMoves(NULL, 0, Moves);
for (unsigned i = 0, N = Moves.size(); i < N; ++i) delete Moves[i];
- EmitAlign(2);
+ Asm->EmitAlignment(2);
EmitLabel("frame_common_end", 0);
O << "\n";
@@ -2477,7 +2471,7 @@
EmitFrameMoves("func_begin", SubprogramCount, Moves);
- EmitAlign(2);
+ Asm->EmitAlignment(2);
EmitLabel("frame_end", SubprogramCount);
O << "\n";
More information about the llvm-commits
mailing list