Fix: [MCParser] Correctly handle CRLF line ends when consuming line comments

Fixes an issue with revision 5c6f748c.

Move the test added in the above commit into the X86 folder, ensuring
that it is only run on targets where its triple is valid.
This commit is contained in:
Tozer 2021-08-17 16:14:12 +01:00
parent d2b574a4de
commit ad40cb8821
2 changed files with 5 additions and 5 deletions

2
llvm/.gitattributes vendored
View File

@ -17,4 +17,4 @@ test/YAMLParser/spec-09-02.test binary
# binary and not autoconvert line endings (for example, when core.autocrlf is
# on).
test/MC/AsmParser/preserve-comments-crlf.s binary
test/tools/llvm-mca/directives-handle-crlf.s binary
test/tools/llvm-mca/X86/directives-handle-crlf.s binary

View File

@ -1,4 +1,4 @@
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown %s
# LLVM-MCA-BEGIN foo
addl $42, %eax
# LLVM-MCA-END
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown %s
# LLVM-MCA-BEGIN foo
addl $42, %eax
# LLVM-MCA-END