From 2a166e9739986486980e4aa65fdfc54dfa62fe9d Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 7 Aug 2008 09:53:13 +0000 Subject: [PATCH] Cleanup git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54455 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcAsmPrinter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp index f122ae26910..26eea0fad82 100644 --- a/lib/Target/Sparc/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/SparcAsmPrinter.cpp @@ -106,7 +106,7 @@ bool SparcAsmPrinter::runOnMachineFunction(MachineFunction &MF) { const Function *F = MF.getFunction(); SwitchToTextSection(getSectionForFunction(*F).c_str(), F); EmitAlignment(4, F); - O << "\t.globl\t" << CurrentFnName << "\n"; + O << "\t.globl\t" << CurrentFnName << '\n'; O << "\t.type\t" << CurrentFnName << ", #function\n"; O << CurrentFnName << ":\n"; @@ -259,7 +259,7 @@ void SparcAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it. if (GVar->hasInternalLinkage()) - O << "\t.local " << name << "\n"; + O << "\t.local " << name << '\n'; O << TAI->getCOMMDirective() << name << ',' << Size; if (TAI->getCOMMDirectiveTakesAlignment()) @@ -275,14 +275,14 @@ void SparcAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { case GlobalValue::LinkOnceLinkage: case GlobalValue::WeakLinkage: // FIXME: Verify correct for weak. // Nonnull linkonce -> weak - O << "\t.weak " << name << "\n"; + O << "\t.weak " << name << '\n'; break; case GlobalValue::AppendingLinkage: // FIXME: appending linkage variables should go into a section of // their name or something. For now, just emit them as external. case GlobalValue::ExternalLinkage: // If external or appending, declare as a global symbol - O << TAI->getGlobalDirective() << name << "\n"; + O << TAI->getGlobalDirective() << name << '\n'; // FALL THROUGH case GlobalValue::InternalLinkage: break; @@ -300,11 +300,11 @@ void SparcAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { } if (Align) - O << "\t.align " << Align << "\n"; + O << "\t.align " << Align << '\n'; if (TAI->hasDotTypeDotSizeDirective()) { O << "\t.type " << name << ",#object\n"; - O << "\t.size " << name << "," << Size << "\n"; + O << "\t.size " << name << ',' << Size << '\n'; } O << name << ":\n";