diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-12 01:27:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-12 01:27:22 +0000 |
commit | 35a12a85a174f9e61dbe34048b6370a6aeb1a3d5 (patch) | |
tree | dd3d6b70937eca46a4fa5c996142c6bb0e074a39 /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
parent | 17c00b43288dce23943dfc9befcdab6f6ade540f (diff) | |
download | llvm-35a12a85a174f9e61dbe34048b6370a6aeb1a3d5.zip llvm-35a12a85a174f9e61dbe34048b6370a6aeb1a3d5.tar.gz llvm-35a12a85a174f9e61dbe34048b6370a6aeb1a3d5.tar.bz2 |
Remove a bit of dead code.
Every "real" object file implements this an ptx doesn't use it.
llvm-svn: 221746
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | llvm/lib/Target/TargetLoweringObjectFile.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp index e63bc2b..01139fb 100644 --- a/llvm/lib/Target/TargetLoweringObjectFile.cpp +++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp @@ -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 |