diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-10-18 20:46:28 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-10-18 20:46:28 +0000 |
commit | ce69d77cec186014a53e8ddabf85a01ddcd31025 (patch) | |
tree | 5bbd3c180dbd291612a0283edd5a04eeca62eb41 /llvm/lib/Target/X86 | |
parent | f7920c8798d76dca89186875cf5ca376dce5fda6 (diff) | |
download | bcm5719-llvm-ce69d77cec186014a53e8ddabf85a01ddcd31025.tar.gz bcm5719-llvm-ce69d77cec186014a53e8ddabf85a01ddcd31025.zip |
MC asm parser: allow ?'s in symbol names, and handle @'s in names in MS asm
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
llvm-svn: 193000
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r-- | llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp index d3f5258a8df..3861e1ce290 100644 --- a/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp +++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp @@ -135,6 +135,8 @@ X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) { AssemblerDialect = AsmWriterFlavor; TextAlignFillValue = 0x90; + + AllowAtInName = true; } void X86MCAsmInfoGNUCOFF::anchor() { } |