[Support] Treat null bytes as separator in windows command line strings
commit691973de16fc5bacd01b6e2e3c538f613472c24d
authorMartin Storsjo <martin@martin.st>
Fri, 14 Sep 2018 06:08:01 +0000 (14 06:08 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 14 Sep 2018 06:08:01 +0000 (14 06:08 +0000)
tree577954b0e35c7ad98a83ea8fe89ebb4fd2973bfc
parent9519cb340100281f6ec6b8ccbb536ef8aa5401a5
[Support] Treat null bytes as separator in windows command line strings

When reading directives from a .drectve section, the directives are
tokenized as a normal windows command line. However in these cases,
link.exe allows the directives to be separated by null bytes, not only by
spaces.

A test case for this change will be added in the lld repo.

Differential Revision: https://reviews.llvm.org/D52014

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342204 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/CommandLine.cpp