mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
3e25c4a1e3
1) DIContext is now able to return function name for a given instruction address (besides file/line info). 2) llvm-dwarfdump accepts flag --functions that prints the function name (if address is specified by --address flag). 3) test case that checks the basic functionality of llvm-dwarfdump added git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159512 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
947 B
Plaintext
26 lines
947 B
Plaintext
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-x86-64 \
|
|
RUN: --address=0x400589 --functions | FileCheck %s -check-prefix MAIN
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-x86-64 \
|
|
RUN: --address=0x400558 --functions | FileCheck %s -check-prefix FUNCTION
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-x86-64 \
|
|
RUN: --address=0x4005b6 --functions | FileCheck %s -check-prefix CTOR_WITH_SPEC
|
|
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
|
|
|
|
MAIN: main
|
|
MAIN-NEXT: dwarfdump-test.cc:16:10
|
|
|
|
FUNCTION: _Z1fii
|
|
FUNCTION-NEXT: dwarfdump-test.cc:11:18
|
|
|
|
CTOR_WITH_SPEC: _ZN10DummyClassC1Ei
|
|
CTOR_WITH_SPEC-NEXT: dwarfdump-test.cc:4:30
|
|
|
|
MANY_CU_1: a
|
|
MANY_CU_1-NEXT: a.cc:2:0
|
|
|
|
MANY_CU_2: main
|
|
MANY_CU_2-NEXT: main.cc:4:0
|