OSDN Git Service

[dwarfdump] Make -c and -p work together
authorJonas Devlieghere <jonas@devlieghere.com>
Sat, 26 May 2018 19:39:56 +0000 (19:39 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Sat, 26 May 2018 19:39:56 +0000 (19:39 +0000)
commit98ac263943471aa03c28bc78ee05778e3d3f49fd
tree9f88b3b5b9ed443863ba7b78f9909e77fd396684
parentbfcd30f542b11ed6da7a5dc99cfb882825f9be33
[dwarfdump] Make -c and -p work together

When requesting to dump both the parent chain and children, we used to
print the DIE more than once because we propagated the dump options to
the parent without clearing the respective flags. This commit fixes this
oversight and adds a test.

rdar://39415292

Differential revision: https://reviews.llvm.org/D47263

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333350 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARF/DWARFDie.cpp
test/tools/llvm-dwarfdump/X86/enum.s [new file with mode: 0644]