OSDN Git Service

Improve behavior of DebugInfoEntryMinimal::getSubprogramName() introduced in r159512.
authorAlexey Samsonov <samsonov@google.com>
Tue, 17 Jul 2012 15:28:35 +0000 (15:28 +0000)
committerAlexey Samsonov <samsonov@google.com>
Tue, 17 Jul 2012 15:28:35 +0000 (15:28 +0000)
commit9d26b0ba06479d9debadebce19344169f72407dd
tree45245cc51de114c3919becf1b93ac1447d8483c1
parent4f0c69623c10a3a49f6926fd53694ee532e06a85
Improve behavior of DebugInfoEntryMinimal::getSubprogramName() introduced in r159512.
To fetch a subprogram name we should not only inspect the DIE for this subprogram, but optionally inspect
its specification, or its abstract origin (even if there is no inlining), or even specification of an abstract origin.

Reviewed by Benjamin Kramer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160365 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARFContext.cpp
lib/DebugInfo/DWARFDebugInfoEntry.cpp
lib/DebugInfo/DWARFDebugInfoEntry.h
test/DebugInfo/Inputs/dwarfdump-test3.elf-x86-64 [new file with mode: 0755]
test/DebugInfo/dwarfdump-test.test
test/DebugInfo/lit.local.cfg