get alignment printing correctly and get rid of __main hack
authorAndrew Lenharth <andrewl@lenharth.org>
Fri, 4 Feb 2005 14:01:21 +0000 (14:01 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Fri, 4 Feb 2005 14:01:21 +0000 (14:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20027 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaAsmPrinter.cpp

index 5e316120ffb1d1545dd53180df83c120bec43741..216b30e11717aa0adabf3f15ac8e36d6046d42df 100644 (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";