X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FObject%2FELFObjectFile.h;fp=include%2Fllvm%2FObject%2FELFObjectFile.h;h=2a870bdbca94522b96412fd9475c8e11a3ed443a;hp=cd334d5e06f527459aca6498210ede3bde523b48;hb=bb418bc23b24d7118d11ee19fb9cb6410f787d5a;hpb=d0d70e479a348e9212613b2a4474b87667b4e1ae diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index cd334d5e06f..2a870bdbca9 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -318,7 +318,6 @@ public: uint8_t getBytesInAddress() const override; StringRef getFileFormatName() const override; unsigned getArch() const override; - StringRef getLoadName() const; std::error_code getPlatformFlags(unsigned &Result) const override { Result = EF.getHeader()->e_flags; @@ -779,19 +778,6 @@ section_iterator ELFObjectFile::section_end() const { return section_iterator(SectionRef(toDRI(EF.section_end()), this)); } -template -StringRef ELFObjectFile::getLoadName() const { - const Elf_Dyn *DI = EF.dynamic_table_begin(); - const Elf_Dyn *DE = EF.dynamic_table_end(); - - while (DI != DE && DI->getTag() != ELF::DT_SONAME) - ++DI; - - if (DI != DE) - return EF.getDynamicString(DI->getVal()); - return ""; -} - template uint8_t ELFObjectFile::getBytesInAddress() const { return ELFT::Is64Bits ? 8 : 4;