gold plugin: move target initialization to the top of the onload function.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 3 Jul 2014 23:28:03 +0000 (23:28 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 3 Jul 2014 23:28:03 +0000 (23:28 +0000)
commit1505c0a4be67089868d26c9486e9822d38762bab
tree627f3e83e81cf36ddf502023849208da5b09b4c1
parent63086fe166933942b38a3cc68af3094b973cb275
gold plugin: move target initialization to the top of the onload function.

On at least my machine, ar does not register an all symbols read hook (which
previously triggered target initialization), but it does register a claim
files hook, which depends on the targets being initialized.

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

llvm-svn: 212303
llvm/tools/gold/gold-plugin.cpp