1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

get alignment printing correctly and get rid of __main hack

llvm-svn: 20027
This commit is contained in:
Andrew Lenharth 2005-02-04 14:01:21 +00:00
parent d2d24eee40
commit 68f8792889

View File

@ -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";