Add new helper pass that strips all symbol names except debugging information.

This pass makes it easier to test wheter debugging info. influences optimization passes or not.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59552 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2008-11-18 21:34:39 +00:00
parent c99da1348d
commit f17fc461d1
3 changed files with 59 additions and 28 deletions

View File

@@ -33,6 +33,13 @@ class GlobalValue;
//
ModulePass *createStripSymbolsPass(bool OnlyDebugInfo = false);
//===----------------------------------------------------------------------===//
//
// These functions removes symbols from functions and modules.
// Only debugging information is not removed.
//
ModulePass *createStripNonDebugSymbolsPass();
//===----------------------------------------------------------------------===//
/// createLowerSetJmpPass - This function lowers the setjmp/longjmp intrinsics
/// to invoke/unwind instructions. This should really be part of the C/C++