mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 23:48:49 +00:00
f768b25cef
Although it seems like clang will never emit scattered relocations in the debug information (at least I couldn't find a way), we have too support them for the benefit of other compilers. As clang doesn't generate them, the included testcase was produced from hacked up assembly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259339 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
390 B
C
13 lines
390 B
C
RUN: llvm-dsymutil -y %p/dummy-debug-map.map -oso-prepend-path %p/../Inputs/scattered-reloc/ -f -o - | llvm-dwarfdump -debug-dump=info - | FileCheck %s
|
|
|
|
// See Inputs/scattered-reloc/scattered.s to see how this test
|
|
// actually works.
|
|
int bar = 42;
|
|
|
|
CHECK: DW_TAG_variable
|
|
CHECK-NOT: DW_TAG
|
|
CHECK: DW_AT_name{{.*}}"bar"
|
|
CHECK-NOT: DW_TAG
|
|
CHECK: DW_AT_location{{.*}}<0x05> 03 10 00 01 00
|
|
|