Index: lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp =================================================================== --- lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp +++ lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp @@ -90,6 +90,7 @@ PrivateGlobalPrefix = "$M"; PrivateLabelPrefix = "$M"; + CommentString = ";"; } void ARMCOFFMCAsmInfoGNU::anchor() { } Index: test/MC/ARM/Windows/literals-comments.s =================================================================== --- /dev/null +++ test/MC/ARM/Windows/literals-comments.s @@ -0,0 +1,25 @@ +; RUN: llvm-mc -triple armv7-windows-msvc -filetype obj -o - %s \ +; RUN: | llvm-readobj -s - | FileCheck %s + + .syntax unified + .thumb + + .text + + .global function + .thumb_func +function: + mov r0, #42 + bx lr + +; CHECK: Sections [ +; CHECK: Section { +; CHECK: Name: .text +; CHECK: Characteristics [ +; CHECK: IMAGE_SCN_ALIGN_4BYTES +; CHECK: IMAGE_SCN_CNT_CODE +; CHECK: IMAGE_SCN_MEM_EXECUTE +; CHECK: IMAGE_SCN_MEM_READ +; CHECK: ] +; CHECK: } +; CHECK: ]