Remove a bit of dead code.

Every "real" object file implements this an ptx doesn't use it.

llvm-svn: 221746
This commit is contained in:
Rafael Espindola
2014-11-12 01:27:22 +00:00
parent 17c00b4328
commit 35a12a85a1
4 changed files with 11 additions and 20 deletions

View File

@@ -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