mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
22f9dd4591
This is another (final?) stab at making us able to parse our own asm output on Windows. Symbols on Windows often contain @'s and ?'s in their names. Our asm parser didn't like this. ?'s were not allowed, and @'s were intepreted as trying to reference PLT/GOT/etc. We can't just add quotes around the bad names, since e.g. for MinGW, we use gas to assemble, and it doesn't like quotes in some places (notably in .def directives). This commit makes us allow ?'s in symbol names, and @'s in symbol names for MS assembly. Differential Revision: http://llvm-reviews.chandlerc.com/D1978 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193000 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
246 B
ArmAsm
13 lines
246 B
ArmAsm
// RUN: llvm-mc -triple i686-pc-linux -filetype=obj %s -o - | llvm-readobj -t | FileCheck %s
|
|
|
|
// MC allows ?'s in symbol names as an extension.
|
|
|
|
.text
|
|
.globl foo?bar
|
|
.type foo?bar, @function
|
|
foo?bar:
|
|
ret
|
|
|
|
// CHECK: Symbol
|
|
// CHECK: Name: foo?bar
|