forked from OSchip/llvm-project
Allow '@' to appear in x86 mingw symbols
Summary: There is no reason to differ in assembler behavior here between -msvc and -gnu targets. Without this setting, the text after the '@' is interpreted as a symbol variable, like foo@IMGREL. Reviewers: mstorsjo Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66974 llvm-svn: 370408
This commit is contained in:
parent
33541fafde
commit
81e458d001
|
@ -163,5 +163,7 @@ X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
|
|||
|
||||
TextAlignFillValue = 0x90;
|
||||
|
||||
AllowAtInName = true;
|
||||
|
||||
UseIntegratedAssembler = true;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
# RUN: llvm-mc %s -filetype=obj -o - -triple i686-windows-msvc | llvm-nm - | FileCheck %s
|
||||
# RUN: llvm-mc %s -filetype=obj -o - -triple i686-windows-gnu | llvm-nm - | FileCheck %s
|
||||
|
||||
# CHECK: T _mystdcall@8{{$}}
|
||||
# CHECK: T foo
|
||||
|
||||
.text
|
||||
.global _mystdcall@8
|
||||
_mystdcall@8:
|
||||
movl 4(%esp), %eax
|
||||
addl 8(%esp), %eax
|
||||
retl $8
|
||||
|
||||
.global foo
|
||||
foo:
|
||||
pushl $1
|
||||
pushl $2
|
||||
calll _mystdcall@8
|
||||
retl
|
Loading…
Reference in New Issue