mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
f1d6af74d5
Add support for emitting .file records. This is mostly a quality of implementation change (more complete support for COFF file emission) that was noticed while working on COFF file emission for Windows on ARM. A .file record is emitted as a symbol with storage class FILE (103) and the name ".file". A series of auxiliary format 4 records follow which contain the file name. The filename is stored as an ANSI string and is padded with NULL if the length is not a multiple of COFF::SymbolSize (18). llvm-svn: 206355
18 lines
453 B
ArmAsm
18 lines
453 B
ArmAsm
// RUN: llvm-mc -triple i686-windows -filetype obj %s -o - | llvm-objdump -t - \
|
|
// RUN: | FileCheck %s -check-prefix CHECK-PRINT
|
|
|
|
.file "null-padded.asm"
|
|
// CHECK-PRINT: .file
|
|
// CHECK-PRINT-NEXT: AUX null-padded.asm{{$}}
|
|
|
|
.file "eighteen-chars.asm"
|
|
|
|
// CHECK-PRINT: .file
|
|
// CHECK-PRINT-NEXT: AUX eighteen-chars.asm{{$}}
|
|
|
|
.file "multiple-auxiliary-entries.asm"
|
|
|
|
// CHECK-PRINT: .file
|
|
// CHECK-PRINT-NEXT: AUX multiple-auxiliary-entries.asm{{$}}
|
|
|