mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-08 19:46:39 +00:00
Cleanup, no functionality change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
315690ec2a
commit
0b501d157e
@ -82,7 +82,7 @@ DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
|||||||
if (isWeak)
|
if (isWeak)
|
||||||
return TextCoalSection;
|
return TextCoalSection;
|
||||||
else
|
else
|
||||||
return getTextSection();
|
return TextSection;
|
||||||
case SectionKind::Data:
|
case SectionKind::Data:
|
||||||
case SectionKind::ThreadData:
|
case SectionKind::ThreadData:
|
||||||
case SectionKind::BSS:
|
case SectionKind::BSS:
|
||||||
@ -90,7 +90,7 @@ DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
|||||||
if (cast<GlobalVariable>(GV)->isConstant())
|
if (cast<GlobalVariable>(GV)->isConstant())
|
||||||
return (isWeak ? ConstDataCoalSection : ConstDataSection);
|
return (isWeak ? ConstDataCoalSection : ConstDataSection);
|
||||||
else
|
else
|
||||||
return (isWeak ? DataCoalSection : getDataSection());
|
return (isWeak ? DataCoalSection : DataSection);
|
||||||
case SectionKind::ROData:
|
case SectionKind::ROData:
|
||||||
return (isWeak ? ConstDataCoalSection :
|
return (isWeak ? ConstDataCoalSection :
|
||||||
(isNonStatic ? ConstDataSection : getReadOnlySection_()));
|
(isNonStatic ? ConstDataSection : getReadOnlySection_()));
|
||||||
|
@ -47,7 +47,7 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
|||||||
case Function::InternalLinkage:
|
case Function::InternalLinkage:
|
||||||
case Function::DLLExportLinkage:
|
case Function::DLLExportLinkage:
|
||||||
case Function::ExternalLinkage:
|
case Function::ExternalLinkage:
|
||||||
return getTextSection();
|
return TextSection;
|
||||||
case Function::WeakLinkage:
|
case Function::WeakLinkage:
|
||||||
case Function::LinkOnceLinkage:
|
case Function::LinkOnceLinkage:
|
||||||
std::string Name = UniqueSectionForGlobal(GV, Kind);
|
std::string Name = UniqueSectionForGlobal(GV, Kind);
|
||||||
@ -63,7 +63,7 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
|||||||
switch (Kind) {
|
switch (Kind) {
|
||||||
case SectionKind::Data:
|
case SectionKind::Data:
|
||||||
case SectionKind::SmallData:
|
case SectionKind::SmallData:
|
||||||
return getDataSection();
|
return DataSection;
|
||||||
case SectionKind::BSS:
|
case SectionKind::BSS:
|
||||||
case SectionKind::SmallBSS:
|
case SectionKind::SmallBSS:
|
||||||
// ELF targets usually have BSS sections
|
// ELF targets usually have BSS sections
|
||||||
|
Loading…
x
Reference in New Issue
Block a user