diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-02-04 14:01:21 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-02-04 14:01:21 +0000 |
commit | 968a30eb8f60a869530c17eb24c5bd732e547f5d (patch) | |
tree | fe9c04868d0d6ed995ad73cef3f6319aee7cf26e /lib/Target/Alpha/AlphaAsmPrinter.cpp | |
parent | 571c9c314f2f02319ebf485b05dccd6d33bf87af (diff) |
get alignment printing correctly and get rid of __main hack
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaAsmPrinter.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaAsmPrinter.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp index 5e316120ff..216b30e117 100644 --- a/lib/Target/Alpha/AlphaAsmPrinter.cpp +++ b/lib/Target/Alpha/AlphaAsmPrinter.cpp @@ -37,7 +37,7 @@ namespace { unsigned LabelNumber; AlphaAsmPrinter(std::ostream &o, TargetMachine &tm) - : AsmPrinter(o, tm), LabelNumber(0) + : AsmPrinter(o, tm), LabelNumber(0), AlignmentIsInBytes(false) { } /// We name each basic block in a Function with a unique number, so @@ -162,17 +162,12 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) { setupMachineFunction(MF); O << "\n\n"; - if (CurrentFnName.compare("main") == 0) - { - // O << "\n\n#HACK\n\t.text\n\t.ent __main\n__main:\n\tret $31,($26),1\n\t.end __main\n#ENDHACK\n\n"; - } - // Print out constants referenced by the function printConstantPool(MF.getConstantPool()); // Print out labels for the function. O << "\t.text\n"; - emitAlignment(2); + emitAlignment(4); O << "\t.globl\t" << CurrentFnName << "\n"; O << "\t.ent\t" << CurrentFnName << "\n"; |