1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/lib/Target/ARM/MCTargetDesc
Renato Golin c15ac98803 [ARM] Set a non-conflicting comment character for assembly in MSVC mode
Currently, for ARMCOFFMCAsmInfoMicrosoft, no comment character is set, thus the
idefault, '#', is used.

The hash character doesn't work as comment character in ARM assembly, since '#'
is used for immediate values.

The comment character is set to ';', which is the comment character used by MS
armasm.exe. (The microsoft armasm.exe uses a different directive syntax than
what LLVM currently supports though, similar to ARM's armasm.)

This allows inline assembly with immediate constants to be built (and brings the
assembly output from clang -S closer to being possible to assemble).

A test is added that verifies that ';' is correctly interpreted as comments in
this mode, and verifies that assembling code that includes literal constants
with a '#' works.

Patch by Martin Storsjö.

llvm-svn: 276859
2016-07-27 12:31:58 +00:00
..
ARMAddressingModes.h [ARM] Add ARMv8.2-A FP16 scalar instructions 2016-01-25 10:26:26 +00:00
ARMAsmBackend.cpp MC] Provide an MCTargetOptions to implementors of MCAsmBackendCtorTy, NFC 2016-07-25 17:18:28 +00:00
ARMAsmBackend.h Fix branch relaxation in 16-bit mode. 2016-07-11 14:23:53 +00:00
ARMAsmBackendDarwin.h MachO: enable .data_region directives everywhere 2016-04-21 23:00:17 +00:00
ARMAsmBackendELF.h Make more headers self-contained. 2016-01-27 18:03:37 +00:00
ARMAsmBackendWinCOFF.h Don't put classes in headers into anonymous namespaces. 2016-01-27 19:29:42 +00:00
ARMBaseInfo.h Don't print (PLT) on arm. 2016-06-16 16:09:53 +00:00
ARMELFObjectWriter.cpp Add support for tlsldm assembler operator to ARM target 2016-07-19 14:15:33 +00:00
ARMELFStreamer.cpp
ARMFixupKinds.h Fix for pr24346: arm asm label calculation error in sub 2016-04-01 09:40:47 +00:00
ARMMachObjectWriter.cpp ARM: fix handling of movw/movt relocations with addend. 2016-02-23 20:20:23 +00:00
ARMMachORelocationInfo.cpp Reflect the MC/MCDisassembler split on the include/ level. 2016-01-26 16:44:37 +00:00
ARMMCAsmInfo.cpp [ARM] Set a non-conflicting comment character for assembly in MSVC mode 2016-07-27 12:31:58 +00:00
ARMMCAsmInfo.h
ARMMCCodeEmitter.cpp ARM: validate immediate branch targets in AsmParser. 2016-07-11 22:29:37 +00:00
ARMMCExpr.cpp
ARMMCExpr.h
ARMMCTargetDesc.cpp Delete MCCodeGenInfo. 2016-06-30 18:25:11 +00:00
ARMMCTargetDesc.h MC] Provide an MCTargetOptions to implementors of MCAsmBackendCtorTy, NFC 2016-07-25 17:18:28 +00:00
ARMTargetStreamer.cpp
ARMUnwindOpAsm.cpp
ARMUnwindOpAsm.h
ARMWinCOFFObjectWriter.cpp
ARMWinCOFFStreamer.cpp
CMakeLists.txt
LLVMBuild.txt