OSDN Git Service

Convert llvm-ld to use the PluginLoader like opt instead of having its
authorReid Spencer <rspencer@reidspencer.com>
Sun, 20 Aug 2006 19:18:36 +0000 (19:18 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 20 Aug 2006 19:18:36 +0000 (19:18 +0000)
commit8e33fae0ed53d91ce86c1764bcce445ebb98f8cb
tree00b49558e3be765ea7df5d3ae746157d9d0bcccc
parent3717ca965bcfb6c66d7e9016566be842a9cc5629
Convert llvm-ld to use the PluginLoader like opt instead of having its
one-off (and broken) RunOptimizations function. Also, run some cleanup
passes after the user's loaded passes run. This make sure to clean up
any cruft left around by thos passes.

This patch was inspired by a patch submitted by Bram Adams.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29781 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-ld/Optimize.cpp