OSDN Git Service

Share /machine: handling code with llvm-cvtres too
authorNico Weber <nicolasweber@gmx.de>
Wed, 12 Jun 2019 11:32:43 +0000 (11:32 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 12 Jun 2019 11:32:43 +0000 (11:32 +0000)
commit2ecbbba53904b882b60bf306779e179860a987c8
tree91792691a81ecc1a4940f3e32bafd7e1c8794c52
parent02e2d229a68f11d1efea05fb21b698431b875284
Share /machine: handling code with llvm-cvtres too

r363016 let lld-link and llvm-lib share the /machine: parsing code.
This lets llvm-cvtres share it as well.

Making llvm-cvtres depend on llvm-lib seemed a bit strange (it doesn't
need llvm-lib's dependencies on BinaryFormat and BitReader) and I
couldn't find a good place to put this code. Since it's just a few
lines, put it in lib/Object for now.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363144 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/WindowsMachineFlag.h [new file with mode: 0644]
include/llvm/ToolDrivers/llvm-lib/LibDriver.h
lib/Object/CMakeLists.txt
lib/Object/WindowsMachineFlag.cpp [new file with mode: 0644]
lib/ToolDrivers/llvm-lib/LibDriver.cpp
tools/llvm-cvtres/llvm-cvtres.cpp
utils/gn/secondary/llvm/lib/Object/BUILD.gn