mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-06 09:39:28 +00:00
Remove a bit of dead code.
Every "real" object file implements this an ptx doesn't use it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
25703e8fa3
commit
dc70865b5b
@ -160,7 +160,7 @@ public:
|
||||
protected:
|
||||
virtual const MCSection *
|
||||
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
||||
Mangler &Mang, const TargetMachine &TM) const;
|
||||
Mangler &Mang, const TargetMachine &TM) const = 0;
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
@ -4496,3 +4496,10 @@ NVPTXTargetObjectFile::~NVPTXTargetObjectFile() {
|
||||
delete DwarfRangesSection;
|
||||
delete DwarfMacroInfoSection;
|
||||
}
|
||||
|
||||
const MCSection *
|
||||
NVPTXTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV,
|
||||
SectionKind Kind, Mangler &Mang,
|
||||
const TargetMachine &TM) const {
|
||||
return getDataSection();
|
||||
}
|
||||
|
@ -98,6 +98,9 @@ public:
|
||||
return DataSection;
|
||||
}
|
||||
|
||||
const MCSection *
|
||||
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang,
|
||||
const TargetMachine &TM) const override;
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
@ -275,25 +275,6 @@ bool TargetLoweringObjectFile::isSectionAtomizableBySymbols(
|
||||
return false;
|
||||
}
|
||||
|
||||
// Lame default implementation. Calculate the section name for global.
|
||||
const MCSection *
|
||||
TargetLoweringObjectFile::SelectSectionForGlobal(const GlobalValue *GV,
|
||||
SectionKind Kind,
|
||||
Mangler &Mang,
|
||||
const TargetMachine &TM) const{
|
||||
assert(!Kind.isThreadLocal() && "Doesn't support TLS");
|
||||
|
||||
if (Kind.isText())
|
||||
return getTextSection();
|
||||
|
||||
if (Kind.isBSS() && BSSSection != nullptr)
|
||||
return BSSSection;
|
||||
|
||||
if (Kind.isReadOnly() && ReadOnlySection != nullptr)
|
||||
return ReadOnlySection;
|
||||
|
||||
return getDataSection();
|
||||
}
|
||||
|
||||
/// getSectionForConstant - Given a mergable constant with the
|
||||
/// specified size and relocation information, return a section that it
|
||||
|
Loading…
x
Reference in New Issue
Block a user