diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-26 00:22:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-26 00:22:55 +0000 |
commit | 8f292e7a6d0c28d6d6e918619eb27b346a7b7e49 (patch) | |
tree | 8724c974e09851ad1b5deda63caeaba7fa2c7b7e /llvm/tools/llvm-extract/llvm-extract.cpp | |
parent | 348dcffb14eb0f33a3c29a8f50c1b3fe08576301 (diff) | |
download | bcm5719-llvm-8f292e7a6d0c28d6d6e918619eb27b346a7b7e49.tar.gz bcm5719-llvm-8f292e7a6d0c28d6d6e918619eb27b346a7b7e49.zip |
Rewrite ExtractGV, removing a bunch of stuff that didn't fully work,
and was over-complicated, and replacing it with a simple implementation.
llvm-svn: 112120
Diffstat (limited to 'llvm/tools/llvm-extract/llvm-extract.cpp')
-rw-r--r-- | llvm/tools/llvm-extract/llvm-extract.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/tools/llvm-extract/llvm-extract.cpp b/llvm/tools/llvm-extract/llvm-extract.cpp index b5c0bcf4f03..319737c54bc 100644 --- a/llvm/tools/llvm-extract/llvm-extract.cpp +++ b/llvm/tools/llvm-extract/llvm-extract.cpp @@ -44,10 +44,6 @@ Force("f", cl::desc("Enable binary output on terminals")); static cl::opt<bool> DeleteFn("delete", cl::desc("Delete specified Globals from Module")); -static cl::opt<bool> -Relink("relink", - cl::desc("Turn external linkage for callees of function to delete")); - // ExtractFuncs - The functions to extract from the module... static cl::list<std::string> ExtractFuncs("func", cl::desc("Specify function to extract"), @@ -122,7 +118,7 @@ int main(int argc, char **argv) { PassManager Passes; Passes.add(new TargetData(M.get())); // Use correct TargetData - Passes.add(createGVExtractionPass(GVs, DeleteFn, Relink)); + Passes.add(createGVExtractionPass(GVs, DeleteFn)); if (!DeleteFn) Passes.add(createGlobalDCEPass()); // Delete unreachable globals Passes.add(createStripDeadDebugInfoPass()); // Remove dead debug info |