]> granicus.if.org Git - llvm/commit
Add a file magic for CL.exe's object file created with /GL.
authorRui Ueyama <ruiu@google.com>
Tue, 15 Nov 2016 00:54:54 +0000 (00:54 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 15 Nov 2016 00:54:54 +0000 (00:54 +0000)
commitbaf920c9bccea60d3b87cd74ea26e88c42d63a5b
treec9346411dace676a4b1ab88af33af6aa922414e2
parent2c34688a06dc6d5c474521570f9e1407d1f8e10d
Add a file magic for CL.exe's object file created with /GL.

This patch makes it possible to identify object files created by CL.exe
with /GL option. Such file contains Microsoft proprietary intermediate
code instead of target machine code to do LTO.

I need this to print out user-friendly error message from LLD.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286919 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/COFF.h
include/llvm/Support/FileSystem.h
lib/Object/ObjectFile.cpp
lib/Support/Path.cpp