mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 06:31:14 +00:00
e4eb654c9f
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. llvm-svn: 259339
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
|
|
|