mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
9245f47396
The CHECK-NOT directives in tools/llvm-dwarfdump/X86/parent_recurse_depth.s can accidentally match something in the path of the object file created by yaml2obj, for example: llvm-project/llvm/test/tools/llvm-dwarfdump/X86/parent_recurse_depth.s:13:12: error: ONE-NOT: excluded string found in input ^ <stdin>:1:22: note: found here builds/llvm-projects/mainline/release/test/tools/llvm-dwarfdump/X86/Output/parent_recurse_depth.s.tmp.o: file format elf64-x86-64 ^~~~ This commit alleviate this issue by consuming the file name from the output, forcing all the CHECK-NOT to match what comes after. Reviewed By: Higuoxing Differential Revision: https://reviews.llvm.org/D103676
68 lines
1.8 KiB
ArmAsm
68 lines
1.8 KiB
ArmAsm
# RUN: yaml2obj %s -o %t.o
|
|
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 0 %t.o | FileCheck %s --check-prefixes=COMMON,ALL
|
|
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 1 %t.o | FileCheck %s --check-prefixes=COMMON,ONE
|
|
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 2 %t.o | FileCheck %s --check-prefixes=COMMON,TWO
|
|
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 3 %t.o | FileCheck %s --check-prefixes=COMMON,ALL
|
|
|
|
# COMMON: .o: file format
|
|
|
|
# ALL: by_hand
|
|
# ALL: main
|
|
# ALL: test
|
|
# ALL: int
|
|
|
|
# ONE-NOT: by_hand
|
|
# ONE-NOT: main
|
|
# ONE: test
|
|
# ONE: int
|
|
|
|
# TWO-NOT: by_hand
|
|
# TWO: main
|
|
# TWO: test
|
|
# TWO: int
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Machine: EM_X86_64
|
|
DWARF:
|
|
debug_abbrev:
|
|
- Table:
|
|
- Tag: DW_TAG_compile_unit
|
|
Children: DW_CHILDREN_yes
|
|
Attributes:
|
|
- Attribute: DW_AT_producer
|
|
Form: DW_FORM_string
|
|
- Tag: DW_TAG_subprogram
|
|
Children: DW_CHILDREN_yes
|
|
Attributes:
|
|
- Attribute: DW_AT_name
|
|
Form: DW_FORM_string
|
|
- Tag: DW_TAG_namespace
|
|
Children: DW_CHILDREN_yes
|
|
Attributes:
|
|
- Attribute: DW_AT_name
|
|
Form: DW_FORM_string
|
|
- Tag: DW_TAG_base_type
|
|
Children: DW_CHILDREN_no
|
|
Attributes:
|
|
- Attribute: DW_AT_name
|
|
Form: DW_FORM_string
|
|
debug_info:
|
|
- Version: 4
|
|
Entries:
|
|
- AbbrCode: 1
|
|
Values:
|
|
- CStr: by_hand
|
|
- AbbrCode: 2
|
|
Values:
|
|
- CStr: main
|
|
- AbbrCode: 3
|
|
Values:
|
|
- CStr: test
|
|
- AbbrCode: 4
|
|
Values:
|
|
- CStr: int
|