Indent .data/.text in the .s file
authorChris Lattner <sabre@nondot.org>
Tue, 9 May 2006 16:15:00 +0000 (16:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 May 2006 16:15:00 +0000 (16:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28204 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCAsmPrinter.cpp

index 8652f9742ddfe0e4c228255e1b291c3e9ebc508b..1db0c9d49533ba95c2f5cefc424a5d6564552658 100644 (file)
@@ -511,10 +511,10 @@ bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
   switch (F->getLinkage()) {
   default: assert(0 && "Unknown linkage type!");
   case Function::InternalLinkage:  // Symbols default to internal.
-    SwitchToTextSection(".text", F);
+    SwitchToTextSection("\t.text", F);
     break;
   case Function::ExternalLinkage:
-    SwitchToTextSection(".text", F);
+    SwitchToTextSection("\t.text", F);
     O << "\t.globl\t" << CurrentFnName << "\n";
     break;
   case Function::WeakLinkage:
@@ -595,10 +595,10 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
         O << "\t.zerofill __DATA, __common, " << name << ", "
           << Size << ", " << Align;
       } else if (I->hasInternalLinkage()) {
-        SwitchToDataSection(".data", I);
+        SwitchToDataSection("\t.data", I);
         O << LCOMMDirective << name << "," << Size << "," << Align;
       } else {
-        SwitchToDataSection(".data", I);
+        SwitchToDataSection("\t.data", I);
         O << ".comm " << name << "," << Size;
       }
       O << "\t\t; '" << I->getName() << "'\n";
@@ -618,7 +618,7 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
         O << "\t.globl " << name << "\n";
         // FALL THROUGH
       case GlobalValue::InternalLinkage:
-        SwitchToDataSection(".data", I);
+        SwitchToDataSection("\t.data", I);
         break;
       default:
         std::cerr << "Unknown linkage type!";