From 9d26b0ba06479d9debadebce19344169f72407dd Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Tue, 17 Jul 2012 15:28:35 +0000 Subject: 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 --- test/DebugInfo/dwarfdump-test.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/DebugInfo/dwarfdump-test.test') diff --git a/test/DebugInfo/dwarfdump-test.test b/test/DebugInfo/dwarfdump-test.test index 84fe7f3ec8..7b01e38268 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 -- cgit v1.2.3