OSDN Git Service

[llvm-objdump] Keep the memory buffer from the dSYM alive when using -g -dsym
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 31 Aug 2018 13:10:54 +0000 (13:10 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 31 Aug 2018 13:10:54 +0000 (13:10 +0000)
commit73e2113025e2aeebb78545caf31e43010b200818
tree918fbdedc537f5a3ec1a403f4e4dcc83d8145ef4
parentc42a8a5ef0e60735d3a180c41f43790b1fa523eb
[llvm-objdump] Keep the memory buffer from the dSYM alive when using -g -dsym

When using -g and -dsym, llvm-objdump opens the dsym file and keeps the
MachOObjectFile alive, while the memory buffer that the MachOObjectFile
was based on gets destroyed.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341209 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/X86/macho-disassembly-g-dsym.test [new file with mode: 0644]
tools/llvm-objdump/MachODump.cpp