[llvm-commits] [llvm] r107417 - /llvm/trunk/tools/llvm-extract/llvm-extract.cpp
Devang Patel
dpatel at apple.com
Thu Jul 1 12:58:05 PDT 2010
Author: dpatel
Date: Thu Jul 1 14:58:05 2010
New Revision: 107417
URL: http://llvm.org/viewvc/llvm-project?rev=107417&view=rev
Log:
Preserve debug info for only extracted symbols.
Modified:
llvm/trunk/tools/llvm-extract/llvm-extract.cpp
Modified: llvm/trunk/tools/llvm-extract/llvm-extract.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-extract/llvm-extract.cpp?rev=107417&r1=107416&r2=107417&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-extract/llvm-extract.cpp (original)
+++ llvm/trunk/tools/llvm-extract/llvm-extract.cpp Thu Jul 1 14:58:05 2010
@@ -112,6 +112,7 @@
Passes.add(createGVExtractionPass(GVs, DeleteFn, Relink));
if (!DeleteFn)
Passes.add(createGlobalDCEPass()); // Delete unreachable globals
+ Passes.add(createStripDeadDebugInfoPass()); // Remove dead debug info
Passes.add(createDeadTypeEliminationPass()); // Remove dead types...
Passes.add(createStripDeadPrototypesPass()); // Remove dead func decls
More information about the llvm-commits
mailing list