OSDN Git Service

[dsymutil] Emit valid debug locations when no symbol flags are set
authorFrancis Ricci <francisjricci@gmail.com>
Mon, 9 Oct 2017 17:27:47 +0000 (17:27 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Mon, 9 Oct 2017 17:27:47 +0000 (17:27 +0000)
commit87b0f4a33cafe87763b4f046bf2fae41adc7f877
tree5f2c7b85c83f23dd4fb046ac45d5fad9be25a418
parent4902d028516f91d546f30e14ef8e16cb648cdb35
[dsymutil] Emit valid debug locations when no symbol flags are set

Summary:
swiftc emits symbols without flags set, which led dsymutil to ignore
them when searching for global symbols, causing dwarf location data
to be omitted. Xcode's dsymutil handles this case correctly, and emits
valid location data. Add this functionality to llvm-dsymutil by
allowing parsing of symbols with no flags set.

Reviewers: aprantl, friss, JDevlieghere

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315218 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/Inputs/swift-dwarf-loc.macho.x86_64 [new file with mode: 0755]
test/tools/dsymutil/Inputs/swift-dwarf-loc.macho.x86_64.o [new file with mode: 0644]
test/tools/dsymutil/X86/swift-dwarf-loc.test [new file with mode: 0644]
tools/dsymutil/MachODebugMapParser.cpp