forked from OSchip/llvm-project
[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
This commit is contained in:
parent
ccb06e720d
commit
467505bd31
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue