Add an extra-library-path option to the plugin. This is used to support
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 23 Jun 2010 20:20:59 +0000 (20:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 23 Jun 2010 20:20:59 +0000 (20:20 +0000)
commit11f403cf2be4d562f731571aee90bc25bd2d38ae
treed4cc40e99d796c92730dcdca2ca5a7c46bb72db4
parent7dbfd07e321dfdc90501d71a144749c69263659f
Add an extra-library-path option to the plugin. This is used to support
having a library both as bitcode and native code. We want to use the
bitcode first, but if codegen produces new undefined references we have to use
the native code to satisfy those references.

Gold has no notion of bitcode and native search directories, so instead it has
an API where the plugin can instruct it to look for the libraries it is passing
to it. This patch uses that API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106674 91177308-0d34-0410-b5e6-96231b3b80d8
tools/gold/gold-plugin.cpp