OSDN Git Service

Teach the symbolizer lib symbolize objects directly.
authorYuanfang Chen <yuanfang.chen@sony.com>
Mon, 8 Jul 2019 19:28:57 +0000 (19:28 +0000)
committerYuanfang Chen <yuanfang.chen@sony.com>
Mon, 8 Jul 2019 19:28:57 +0000 (19:28 +0000)
commit44ef0a6b7c18b1c480a4c2017cd63417fb3af225
tree6d4520cad37df6a1986ea125b18ba80556bab22f
parentac0e90fd2486f1ae151cab28b7ae6e30b1abe1c0
Teach the symbolizer lib symbolize objects directly.

Currently, the symbolizer lib can only symbolize a file on disk.
This patch teaches the symbolizer lib to symbolize objects.
llvm-objdump needs this to support archive disassembly with source info.

https://bugs.llvm.org/show_bug.cgi?id=41871

Reviewed by: jhenderson, grimar, MaskRay

Differential Revision: https://reviews.llvm.org/D63521

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365376 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/Symbolize/Symbolize.h
lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
lib/DebugInfo/Symbolize/SymbolizableObjectFile.h
lib/DebugInfo/Symbolize/Symbolize.cpp
test/tools/llvm-objdump/X86/disassemble-archive-with-source.ll [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp