[lld][WebAssembly] Fix stub library parsing with windows line endings
authorSam Clegg <sbc@chromium.org>
Tue, 4 Apr 2023 17:24:40 +0000 (10:24 -0700)
committerSam Clegg <sbc@chromium.org>
Tue, 4 Apr 2023 18:55:01 +0000 (11:55 -0700)
commitd9d840cdaf51a9795930750d1b91d614a3849137
treebc2c707a6cc365157952f350cefea96ac5c7d3bb
parent2f268b74fdcda025e176f7f47676cdd1507f9709
[lld][WebAssembly] Fix stub library parsing with windows line endings

Also, fix checking of first line in ::parse.  We can't use the
::getLines helper here since that already does comment stripping
internally.

Differential Revision: https://reviews.llvm.org/D147548
lld/test/wasm/Inputs/.gitattributes [new file with mode: 0644]
lld/wasm/Driver.cpp
lld/wasm/InputFiles.cpp