diff options
| author | Jim Laskey <jlaskey@mac.com> | 2007-01-24 13:12:32 +0000 |
|---|---|---|
| committer | Jim Laskey <jlaskey@mac.com> | 2007-01-24 13:12:32 +0000 |
| commit | f6487ec894f7431c68d22ef68251e30827e074a0 (patch) | |
| tree | 178bbe7c32043cea0baa40006164b14001928767 /llvm/lib/CodeGen | |
| parent | 1526ba50d9e69602c6b6383e1d45518d1a1c10a8 (diff) | |
| download | bcm5719-llvm-f6487ec894f7431c68d22ef68251e30827e074a0.tar.gz bcm5719-llvm-f6487ec894f7431c68d22ef68251e30827e074a0.zip | |
Use asm printer to emit alignment
llvm-svn: 33485
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/DwarfWriter.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp index 153d96ffb4b..bdf91fda066 100644 --- a/llvm/lib/CodeGen/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/DwarfWriter.cpp @@ -945,12 +945,6 @@ public: 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 @@ private: 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 @@ private: EmitFrameMoves("func_begin", SubprogramCount, Moves); - EmitAlign(2); + Asm->EmitAlignment(2); EmitLabel("frame_end", SubprogramCount); O << "\n"; |

