summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-08-02 13:18:49 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-08-02 13:18:49 +0000
commit467505bd315640a4f1885605ea3965d3d6f81bad (patch)
treeca460e43c447fd998a5634b093496bd33e76b830
parentccb06e720de69c8b2f189fb046234573bb87cdd2 (diff)
downloadbcm5719-llvm-467505bd315640a4f1885605ea3965d3d6f81bad.tar.gz
bcm5719-llvm-467505bd315640a4f1885605ea3965d3d6f81bad.zip
[LLD][ELF] - Remove dead code. NFC.
It does not seem that this code is alive. I seems was needed previously but we fixed it. If it is still needed, it needs new tests, but for now I do not know how to trigger it, and so I removed it. llvm-svn: 338713
-rw-r--r--lld/ELF/InputSection.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 54fb57cf988..db5df198a81 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -259,9 +259,6 @@ std::string InputSectionBase::getLocation(uint64_t Offset) {
//
// Returns an empty string if there's no way to get line info.
std::string InputSectionBase::getSrcMsg(const Symbol &Sym, uint64_t Offset) {
- // Synthetic sections don't have input files.
- if (!File)
- return "";
return File->getSrcMsg(Sym, *this, Offset);
}
@@ -275,9 +272,6 @@ std::string InputSectionBase::getSrcMsg(const Symbol &Sym, uint64_t Offset) {
//
// path/to/foo.o:(function bar) in archive path/to/bar.a
std::string InputSectionBase::getObjMsg(uint64_t Off) {
- // Synthetic sections don't have input files.
- if (!File)
- return ("<internal>:(" + Name + "+0x" + utohexstr(Off) + ")").str();
std::string Filename = File->getName();
std::string Archive;
OpenPOWER on IntegriCloud