Dispose modules early and only create codegen when the plugin is being
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 20 Feb 2011 18:28:29 +0000 (18:28 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 20 Feb 2011 18:28:29 +0000 (18:28 +0000)
commit8e04fc3adf3419eeb9466b66cbaf9b027dcc2cab
tree5492eece8bd8bf894c7b99d1f5aaa9b04208a187
parenteff5e69c82096812acec0c5c6f135c755a1632d2
Dispose modules early and only create codegen when the plugin is being
used by the linker and not by nm or ar.

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