COFF: Move machine type auto-detection to SymbolTable.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 29 May 2015 21:47:36 +0000 (21:47 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 29 May 2015 21:47:36 +0000 (21:47 +0000)
commit246ccc5f518f0126648f8d9421d348307b3cbf1c
tree6dff8afbdaf46dbf9c705883e584bfcd4f0f63bf
parent4d37b2a2594429554d930cdc8d11709807492fe8
COFF: Move machine type auto-detection to SymbolTable.

The new mechanism is less code, and fixes the case where all inputs
are archives.

Differential Revision: http://reviews.llvm.org/D10136

llvm-svn: 238618
lld/COFF/DriverUtils.cpp
lld/COFF/SymbolTable.h
lld/COFF/Writer.cpp
lld/test/COFF/Inputs/ret42.lib [new file with mode: 0644]
lld/test/COFF/machine.test