summaryrefslogtreecommitdiff
path: root/test/MC/COFF
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-04-16 04:15:32 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-04-16 04:15:32 +0000
commit73a7844c654e262cafaaf3eb96df0034d878996e (patch)
treedc229b797dc6dda824d72f73f9f3046d813e275e /test/MC/COFF
parent30e7a0ae041c70f780003885453f27a5ed15e88c (diff)
COFF: add support for .file symbols
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/COFF')
-rw-r--r--test/MC/COFF/file.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/MC/COFF/file.s b/test/MC/COFF/file.s
new file mode 100644
index 00000000000..a258693839c
--- /dev/null
+++ b/test/MC/COFF/file.s
@@ -0,0 +1,17 @@
+// 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{{$}}
+