From 219f1b535dd65cf49d783f846bd8da80e3700c2e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 9 May 2006 16:15:00 +0000 Subject: [PATCH] Indent .data/.text in the .s file git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28204 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCAsmPrinter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 8652f9742dd..1db0c9d4953 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -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!";