Identify object files compiled with cl.exe /GL.
authorRui Ueyama <ruiu@google.com>
Tue, 15 Nov 2016 01:01:51 +0000 (01:01 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 15 Nov 2016 01:01:51 +0000 (01:01 +0000)
commitf83806a8adb4fdc7d785b66d48b42459f7874807
treec41d48fefc0f4570a04c47e7ad3ae1158ba3cdcd
parente97c34cb60775b29e887de9ca2495c7dee5d627c
Identify object files compiled with cl.exe /GL.

Object files compiled with cl.exe /GL contain intermediate code for LTO.
We can't (and don't want to) interpret such code, but we should print
out a user-friendly error message.

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

llvm-svn: 286921
lld/COFF/Driver.cpp
lld/test/COFF/Inputs/cl-gl.obj [new file with mode: 0755]
lld/test/COFF/cl-gl.test [new file with mode: 0644]