1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Preserve debug info for only extracted symbols.

llvm-svn: 107417
This commit is contained in:
Devang Patel 2010-07-01 19:58:05 +00:00
parent a0fa700f3c
commit 8a819baed9

View File

@ -112,6 +112,7 @@ int main(int argc, char **argv) {
Passes.add(createGVExtractionPass(GVs, DeleteFn, Relink)); Passes.add(createGVExtractionPass(GVs, DeleteFn, Relink));
if (!DeleteFn) if (!DeleteFn)
Passes.add(createGlobalDCEPass()); // Delete unreachable globals Passes.add(createGlobalDCEPass()); // Delete unreachable globals
Passes.add(createStripDeadDebugInfoPass()); // Remove dead debug info
Passes.add(createDeadTypeEliminationPass()); // Remove dead types... Passes.add(createDeadTypeEliminationPass()); // Remove dead types...
Passes.add(createStripDeadPrototypesPass()); // Remove dead func decls Passes.add(createStripDeadPrototypesPass()); // Remove dead func decls