Don't repeat name in comment and clang-format a function.

llvm-svn: 228831
This commit is contained in:
Rafael Espindola 2015-02-11 14:44:17 +00:00
parent fa6607d0b6
commit 25d2c20c0c
1 changed files with 20 additions and 14 deletions

View File

@ -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.";
}