diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-19 23:34:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-19 23:34:59 +0000 |
commit | 3ee9e11acb88cf0fbc0364e6fb9d2f9cc9695bf2 (patch) | |
tree | 45253473cdf2870c765a04cb54b677252f3e951c /llvm/lib | |
parent | d0309916005826a3896a7ab2b44467a16586c8cc (diff) | |
download | bcm5719-llvm-3ee9e11acb88cf0fbc0364e6fb9d2f9cc9695bf2.tar.gz bcm5719-llvm-3ee9e11acb88cf0fbc0364e6fb9d2f9cc9695bf2.zip |
Remove some leftover DWARFContextInMemory.
Not sure how I missed these on the previous commit.
llvm-svn: 308550
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 14 | ||||
-rw-r--r-- | llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp | 2 |
2 files changed, 1 insertions, 15 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index c91bd27c91a..a117a99e0e4 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -783,20 +783,6 @@ DWARFContext::getInliningInfoForAddress(uint64_t Address, return InliningInfo; } -/// DWARFContextInMemory is the simplest possible implementation of a -/// DWARFContext. It assumes all content is available in memory and stores -/// pointers to it. -class DWARFContextInMemory : public DWARFContext { -public: - DWARFContextInMemory( - const object::ObjectFile &Obj, const LoadedObjectInfo *L = nullptr, - function_ref<ErrorPolicy(Error)> HandleError = defaultErrorHandler); - - DWARFContextInMemory(const StringMap<std::unique_ptr<MemoryBuffer>> &Sections, - uint8_t AddrSize, - bool isLittleEndian = sys::IsLittleEndianHost); -}; - std::shared_ptr<DWARFContext> DWARFContext::getDWOContext(StringRef AbsolutePath) { if (auto S = DWP.lock()) { diff --git a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp b/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp index a7b1fe206f1..cb6dd5e5728 100644 --- a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp @@ -104,7 +104,7 @@ void IntelJITEventListener::NotifyObjectEmitted( // Get the address of the object image for use as a unique identifier const void* ObjData = DebugObj.getData().data(); - DIContext* Context = new DWARFContextInMemory(DebugObj); + std::unique_ptr<DIContext> Context = DWARFContext::create(DebugObj); MethodAddressVector Functions; // Use symbol info to iterate functions in the object. |