diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp index f2f640a9905..95a2a11c07c 100644 --- a/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -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" << diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index 90c3f323c89..ce0fc1349e0 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -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(C))