mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 22:32:08 +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);
|
/*EntrySize=*/0, Group);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getSectionPrefixForGlobal - Return the section prefix name used by options
|
/// Return the section prefix name used by options FunctionsSections and
|
||||||
/// FunctionsSections and DataSections.
|
/// DataSections.
|
||||||
static StringRef getSectionPrefixForGlobal(SectionKind Kind) {
|
static StringRef getSectionPrefixForGlobal(SectionKind Kind) {
|
||||||
if (Kind.isText()) return ".text.";
|
if (Kind.isText())
|
||||||
if (Kind.isReadOnly()) return ".rodata.";
|
return ".text.";
|
||||||
if (Kind.isBSS()) return ".bss.";
|
if (Kind.isReadOnly())
|
||||||
|
return ".rodata.";
|
||||||
if (Kind.isThreadData()) return ".tdata.";
|
if (Kind.isBSS())
|
||||||
if (Kind.isThreadBSS()) return ".tbss.";
|
return ".bss.";
|
||||||
|
if (Kind.isThreadData())
|
||||||
if (Kind.isDataNoRel()) return ".data.";
|
return ".tdata.";
|
||||||
if (Kind.isDataRelLocal()) return ".data.rel.local.";
|
if (Kind.isThreadBSS())
|
||||||
if (Kind.isDataRel()) return ".data.rel.";
|
return ".tbss.";
|
||||||
if (Kind.isReadOnlyWithRelLocal()) return ".data.rel.ro.local.";
|
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");
|
assert(Kind.isReadOnlyWithRel() && "Unknown section kind");
|
||||||
return ".data.rel.ro.";
|
return ".data.rel.ro.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user