mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Cleanup, no functionality change
llvm-svn: 56576
This commit is contained in:
parent
dca16f3acf
commit
021a7eed86
@ -82,7 +82,7 @@ DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
||||
if (isWeak)
|
||||
return TextCoalSection;
|
||||
else
|
||||
return getTextSection();
|
||||
return TextSection;
|
||||
case SectionKind::Data:
|
||||
case SectionKind::ThreadData:
|
||||
case SectionKind::BSS:
|
||||
@ -90,7 +90,7 @@ DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
||||
if (cast<GlobalVariable>(GV)->isConstant())
|
||||
return (isWeak ? ConstDataCoalSection : ConstDataSection);
|
||||
else
|
||||
return (isWeak ? DataCoalSection : getDataSection());
|
||||
return (isWeak ? DataCoalSection : DataSection);
|
||||
case SectionKind::ROData:
|
||||
return (isWeak ? ConstDataCoalSection :
|
||||
(isNonStatic ? ConstDataSection : getReadOnlySection_()));
|
||||
|
@ -47,7 +47,7 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
||||
case Function::InternalLinkage:
|
||||
case Function::DLLExportLinkage:
|
||||
case Function::ExternalLinkage:
|
||||
return getTextSection();
|
||||
return TextSection;
|
||||
case Function::WeakLinkage:
|
||||
case Function::LinkOnceLinkage:
|
||||
std::string Name = UniqueSectionForGlobal(GV, Kind);
|
||||
@ -63,7 +63,7 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
||||
switch (Kind) {
|
||||
case SectionKind::Data:
|
||||
case SectionKind::SmallData:
|
||||
return getDataSection();
|
||||
return DataSection;
|
||||
case SectionKind::BSS:
|
||||
case SectionKind::SmallBSS:
|
||||
// ELF targets usually have BSS sections
|
||||
|
Loading…
Reference in New Issue
Block a user