mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 07:30:52 +00:00
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
This commit is contained in:
parent
c0021e43ea
commit
831855275d
@ -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.";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user