From 831855275d93d27e81d1bc3529df43e62de02ba7 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 11 Feb 2015 14:44:17 +0000 Subject: [PATCH] Don't repeat name in comment and clang-format a function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228831 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 34 ++++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 35860fa1337..eac1245d829 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -224,21 +224,27 @@ const MCSection *TargetLoweringObjectFileELF::getExplicitSectionGlobal( /*EntrySize=*/0, Group); } -/// getSectionPrefixForGlobal - Return the section prefix name used by options -/// FunctionsSections and DataSections. +/// Return the section prefix name used by options FunctionsSections and +/// DataSections. static StringRef getSectionPrefixForGlobal(SectionKind Kind) { - if (Kind.isText()) return ".text."; - if (Kind.isReadOnly()) return ".rodata."; - if (Kind.isBSS()) return ".bss."; - - if (Kind.isThreadData()) return ".tdata."; - if (Kind.isThreadBSS()) return ".tbss."; - - if (Kind.isDataNoRel()) return ".data."; - if (Kind.isDataRelLocal()) return ".data.rel.local."; - if (Kind.isDataRel()) return ".data.rel."; - if (Kind.isReadOnlyWithRelLocal()) return ".data.rel.ro.local."; - + if (Kind.isText()) + return ".text."; + if (Kind.isReadOnly()) + return ".rodata."; + if (Kind.isBSS()) + return ".bss."; + if (Kind.isThreadData()) + return ".tdata."; + if (Kind.isThreadBSS()) + return ".tbss."; + if (Kind.isDataNoRel()) + return ".data."; + if (Kind.isDataRelLocal()) + return ".data.rel.local."; + if (Kind.isDataRel()) + return ".data.rel."; + if (Kind.isReadOnlyWithRelLocal()) + return ".data.rel.ro.local."; assert(Kind.isReadOnlyWithRel() && "Unknown section kind"); return ".data.rel.ro."; }