diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-07-17 15:28:35 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-07-17 15:28:35 +0000 |
commit | 9d26b0ba06479d9debadebce19344169f72407dd (patch) | |
tree | 45245cc51de114c3919becf1b93ac1447d8483c1 /test | |
parent | 4f0c69623c10a3a49f6926fd53694ee532e06a85 (diff) | |
download | external_llvm-9d26b0ba06479d9debadebce19344169f72407dd.zip external_llvm-9d26b0ba06479d9debadebce19344169f72407dd.tar.gz external_llvm-9d26b0ba06479d9debadebce19344169f72407dd.tar.bz2 |
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
Diffstat (limited to 'test')
-rwxr-xr-x | test/DebugInfo/Inputs/dwarfdump-test3.elf-x86-64 | bin | 0 -> 6794 bytes | |||
-rw-r--r-- | test/DebugInfo/dwarfdump-test.test | 5 | ||||
-rw-r--r-- | test/DebugInfo/lit.local.cfg | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/test/DebugInfo/Inputs/dwarfdump-test3.elf-x86-64 b/test/DebugInfo/Inputs/dwarfdump-test3.elf-x86-64 Binary files differnew file mode 100755 index 0000000..fb3ca03 --- /dev/null +++ b/test/DebugInfo/Inputs/dwarfdump-test3.elf-x86-64 diff --git a/test/DebugInfo/dwarfdump-test.test b/test/DebugInfo/dwarfdump-test.test index 84fe7f3..7b01e38 100644 --- a/test/DebugInfo/dwarfdump-test.test +++ b/test/DebugInfo/dwarfdump-test.test @@ -8,6 +8,8 @@ RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test2.elf-x86-64 \ RUN: --address=0x4004b8 --functions | FileCheck %s -check-prefix MANY_CU_1 RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test2.elf-x86-64 \ RUN: --address=0x4004c4 --functions | FileCheck %s -check-prefix MANY_CU_2 +RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test3.elf-x86-64 \ +RUN: --address=0x538 --functions | FileCheck %s -check-prefix ABS_ORIGIN_1 MAIN: main MAIN-NEXT: dwarfdump-test.cc:16:10 @@ -23,3 +25,6 @@ MANY_CU_1-NEXT: a.cc:2:0 MANY_CU_2: main MANY_CU_2-NEXT: main.cc:4:0 + +ABS_ORIGIN_1: C +ABS_ORIGIN_1-NEXT: def.cc:3:0 diff --git a/test/DebugInfo/lit.local.cfg b/test/DebugInfo/lit.local.cfg index 19eebc0..00bd9b8 100644 --- a/test/DebugInfo/lit.local.cfg +++ b/test/DebugInfo/lit.local.cfg @@ -1 +1 @@ -config.suffixes = ['.ll', '.c', '.cpp'] +config.suffixes = ['.ll', '.c', '.cpp', '.test'] |