Use tabs more consistently in assembler pseudo-ops.
authorDan Gohman <gohman@apple.com>
Mon, 30 Jul 2007 15:08:02 +0000 (15:08 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 30 Jul 2007 15:08:02 +0000 (15:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40594 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ATTAsmPrinter.cpp
lib/Target/X86/X86AsmPrinter.cpp

index f2f640a99057b76a386c5b64163338bb992ef291..95a2a11c07c8da4ba7a070ae3708beec2277781a 100644 (file)
@@ -129,7 +129,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
       O << "\t.linkonce discard\n";
     } else {
       EmitAlignment(4, F);     // FIXME: This should be parameterized somewhere.
-      O << "\t.weak " << CurrentFnName << "\n";
+      O << "\t.weak\t" << CurrentFnName << "\n";
     }
     break;
   }
@@ -142,7 +142,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
   }
 
   if (Subtarget->isTargetELF())
-    O << "\t.type " << CurrentFnName << ",@function\n";
+    O << "\t.type\t" << CurrentFnName << ",@function\n";
   else if (Subtarget->isTargetCygMing()) {
     O << "\t.def\t " << CurrentFnName
       << ";\t.scl\t" <<
index 90c3f323c8995b53e4186bc81958e870f4823af1..ce0fc1349e06062a54f89d743580157ead0b57c2 100644 (file)
@@ -168,7 +168,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
     }
     
     if (Subtarget->isTargetELF())
-      O << "\t.type " << name << ",@object\n";
+      O << "\t.type\t" << name << ",@object\n";
     
     if (C->isNullValue()) {
       if (I->hasExternalLinkage()) {
@@ -228,7 +228,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
                                 name +
                                 ",\"aw\",@progbits");
         SwitchToDataSection(SectionName.c_str(), I);
-        O << "\t.weak " << name << "\n";
+        O << "\t.weak\t" << name << "\n";
       }
       break;
     case GlobalValue::AppendingLinkage:
@@ -305,7 +305,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
     O << name << ":\t\t\t\t" << TAI->getCommentString() << " " << I->getName()
       << "\n";
     if (TAI->hasDotTypeDotSizeDirective())
-      O << "\t.size " << name << ", " << Size << "\n";
+      O << "\t.size\t" << name << ", " << Size << "\n";
     // If the initializer is a extern weak symbol, remember to emit the weak
     // reference!
     if (const GlobalValue *GV = dyn_cast<GlobalValue>(C))