From: Devang Patel Date: Thu, 1 Jul 2010 19:58:05 +0000 (+0000) Subject: Preserve debug info for only extracted symbols. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c1874b7a7c61a0eaa73fa8e6ce4be37a1c468691;p=oota-llvm.git Preserve debug info for only extracted symbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107417 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp index 276dfd638b5..e6b5b8465d7 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