some typoes and .bss isn't liked, at all
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 10 Mar 2005 19:02:02 +0000 (19:02 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 10 Mar 2005 19:02:02 +0000 (19:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20542 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaAsmPrinter.cpp

index acfeb9174cf7d212112d412dcb57f63d23c8ea1e..8031d1747f955bc16bc29c84a1a6bdae7c1e6367 100644 (file)
@@ -126,7 +126,7 @@ void AlphaAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
   }
 
   case MachineOperand::MO_ConstantPoolIndex:
-    O << "$CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
+    O << "CPI" << CurrentFnName << "_" << MO.getConstantPoolIndex();
     return;
 
   case MachineOperand::MO_ExternalSymbol:
@@ -211,7 +211,7 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
   for (unsigned i = 0, e = CP.size(); i != e; ++i) {
     O << "\t.section\t.rodata\n";
     emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
-    O << "$CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
+    O << "CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
       << *CP[i] << "\n";
     emitGlobalConstant(CP[i]);
   }
@@ -279,12 +279,12 @@ bool AlphaAsmPrinter::doFinalization(Module &M) {
           // FALL THROUGH
         case GlobalValue::InternalLinkage:
           if (C->isNullValue())
-            SwitchSection(O, CurSection, ".bss");
+            SwitchSection(O, CurSection, ".data"); //was .bss
           else
             SwitchSection(O, CurSection, ".data");
           break;
         case GlobalValue::GhostLinkage:
-          std::cerr << "GhostLinkage cannot appear in X86AsmPrinter!\n";
+          std::cerr << "GhostLinkage cannot appear in AlphaAsmPrinter!\n";
           abort();
         }