mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
[MC] Fix regression tests on Windows when git “core.autocrlf” is set to true.
Differential Revision: https://reviews.llvm.org/D39737 llvm-svn: 318528
This commit is contained in:
parent
6d12a70c62
commit
a79b10c2f1
12
.gitattributes
vendored
Normal file
12
.gitattributes
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# binary files
|
||||||
|
test/Object/Inputs/*.a-* binary
|
||||||
|
test/tools/dsymutil/Inputs/* binary
|
||||||
|
test/tools/llvm-ar/Inputs/*.lib binary
|
||||||
|
test/tools/llvm-objdump/Inputs/*.a binary
|
||||||
|
test/tools/llvm-rc/Inputs/* binary
|
||||||
|
test/tools/llvm-strings/Inputs/numbers binary
|
||||||
|
test/MC/AsmParser/incbin_abcd binary
|
||||||
|
test/YAMLParser/spec-09-02.test binary
|
||||||
|
|
||||||
|
# Windows line ending test
|
||||||
|
test/MC/AsmParser/preserve-comments-crlf.s text eol=crlf
|
@ -76,6 +76,11 @@ Here's the short story for getting up and running quickly with LLVM:
|
|||||||
|
|
||||||
* With anonymous Subversion access:
|
* With anonymous Subversion access:
|
||||||
|
|
||||||
|
*Note:* some regression tests require Unix-style line ending (``\n``). To
|
||||||
|
pass all regression tests, please add two lines *enable-auto-props = yes*
|
||||||
|
and *\* = svn:mime-type=application/octet-stream* to
|
||||||
|
``C:\Users\<username>\AppData\Roaming\Subversion\config``.
|
||||||
|
|
||||||
1. ``cd <where-you-want-llvm-to-live>``
|
1. ``cd <where-you-want-llvm-to-live>``
|
||||||
2. ``svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm``
|
2. ``svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm``
|
||||||
3. ``cd llvm``
|
3. ``cd llvm``
|
||||||
|
@ -210,6 +210,8 @@ AsmToken AsmLexer::LexLineComment() {
|
|||||||
int CurChar = getNextChar();
|
int CurChar = getNextChar();
|
||||||
while (CurChar != '\n' && CurChar != '\r' && CurChar != EOF)
|
while (CurChar != '\n' && CurChar != '\r' && CurChar != EOF)
|
||||||
CurChar = getNextChar();
|
CurChar = getNextChar();
|
||||||
|
if (CurChar == '\r' && CurPtr != CurBuf.end() && *CurPtr == '\n')
|
||||||
|
++CurPtr;
|
||||||
|
|
||||||
// If we have a CommentConsumer, notify it about the comment.
|
// If we have a CommentConsumer, notify it about the comment.
|
||||||
if (CommentConsumer) {
|
if (CommentConsumer) {
|
||||||
|
BIN
test/MC/AsmParser/preserve-comments-crlf.s
Normal file
BIN
test/MC/AsmParser/preserve-comments-crlf.s
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user