[dwarfdump] Resolve also variable specifications/abstract_origins.
authorFrederic Riss <friss@apple.com>
Fri, 10 Oct 2014 15:51:02 +0000 (15:51 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 10 Oct 2014 15:51:02 +0000 (15:51 +0000)
commitdd2cb9cae7dc596d0980def3f33224ff23d037e3
tree31faa8205e87182275fe6bcea6e16b204b2f9b41
parentd62c4bac66601e4bb2f48f00abec699a3582141d
[dwarfdump] Resolve also variable specifications/abstract_origins.

DW_AT_specification and DW_AT_abstract_origin resolving was only performed
on subroutine DIEs because it used the getSubroutineName method. Introduce
a more generic getName() and use it to dump the reference attributes.

Testcases have been updated to check the printed names instead of the offsets
except when the name could be ambiguous.

Reviewers: dblaikie, samsonov

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5625

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219506 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DIContext.h
lib/DebugInfo/DWARFDebugInfoEntry.cpp
lib/DebugInfo/DWARFDebugInfoEntry.h
test/DebugInfo/PR20038.ll
test/DebugInfo/X86/concrete_out_of_line.ll
test/DebugInfo/X86/dbg-value-inlined-parameter.ll
test/DebugInfo/X86/debug-info-static-member.ll
test/DebugInfo/X86/gnu-public-names.ll
test/DebugInfo/cross-cu-inlining.ll
test/DebugInfo/missing-abstract-variable.ll
test/DebugInfo/namespace_inline_function_definition.ll