mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Preserve debug info for only extracted symbols.
llvm-svn: 107417
This commit is contained in:
parent
a0fa700f3c
commit
8a819baed9
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user