aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-extract/llvm-extract.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-07-01 19:58:05 +0000
committerDevang Patel <dpatel@apple.com>2010-07-01 19:58:05 +0000
commitc1874b7a7c61a0eaa73fa8e6ce4be37a1c468691 (patch)
tree130e6b7860b5ae57aa760c24826f8a7485335876 /tools/llvm-extract/llvm-extract.cpp
parent26d14294de179ada3ba472d206bd25e9785f05a3 (diff)
Preserve debug info for only extracted symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-extract/llvm-extract.cpp')
-rw-r--r--tools/llvm-extract/llvm-extract.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp
index 276dfd638b..e6b5b8465d 100644
--- a/tools/llvm-extract/llvm-extract.cpp
+++ b/tools/llvm-extract/llvm-extract.cpp
@@ -112,6 +112,7 @@ int main(int argc, char **argv) {
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