aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2023-10-02 22:20:35 +0700
committerSerge Pavlov <sepavloff@gmail.com>2023-10-02 22:20:35 +0700
commit39fec5457c0925bd39f67f63fe17391584e08258 (patch)
tree6309cca05ce2e4999e0709742e00f7777103a252 /llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
parent9aedb60c70386c6be28e3c9b7fa5326cade25702 (diff)
downloadllvm-39fec5457c0925bd39f67f63fe17391584e08258.zip
llvm-39fec5457c0925bd39f67f63fe17391584e08258.tar.gz
llvm-39fec5457c0925bd39f67f63fe17391584e08258.tar.bz2
Revert "[symbolizer] Support symbol lookup"
This reverts commit 2b27948783e4bbc1132d3220d8517ef62607b558. On some buildbots the test LLVM::interrupts.test start failing.
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp')
-rw-r--r--llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp b/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
index 6973030..6b8068a 100644
--- a/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
+++ b/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
@@ -351,19 +351,6 @@ std::vector<DILocal> SymbolizableObjectFile::symbolizeFrame(
return DebugInfoContext->getLocalsForAddress(ModuleOffset);
}
-std::vector<object::SectionedAddress>
-SymbolizableObjectFile::findSymbol(StringRef Symbol) const {
- std::vector<object::SectionedAddress> Result;
- for (const SymbolDesc &Sym : Symbols) {
- if (Sym.Name.equals(Symbol)) {
- object::SectionedAddress A{Sym.Addr,
- getModuleSectionIndexForAddress(Sym.Addr)};
- Result.push_back(A);
- }
- }
- return Result;
-}
-
/// Search for the first occurence of specified Address in ObjectFile.
uint64_t SymbolizableObjectFile::getModuleSectionIndexForAddress(
uint64_t Address) const {