summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/IPO.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-11-18 21:34:39 +0000
committerDevang Patel <dpatel@apple.com>2008-11-18 21:34:39 +0000
commitf17fc461d17f9fa85f8fbc140ded8f3c591791e2 (patch)
tree333d2bcde3773e57b17af95d62d4671ae89c308d /include/llvm/Transforms/IPO.h
parentc99da1348d1ebc1b1fcd0fcca67905ce654e2709 (diff)
downloadllvm-f17fc461d17f9fa85f8fbc140ded8f3c591791e2.tar.gz
llvm-f17fc461d17f9fa85f8fbc140ded8f3c591791e2.tar.bz2
llvm-f17fc461d17f9fa85f8fbc140ded8f3c591791e2.tar.xz
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
Diffstat (limited to 'include/llvm/Transforms/IPO.h')
-rw-r--r--include/llvm/Transforms/IPO.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h
index 887614074c..0d4e33af12 100644
--- a/include/llvm/Transforms/IPO.h
+++ b/include/llvm/Transforms/IPO.h
@@ -34,6 +34,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++
/// front-end, but it's so much easier to write transformations in LLVM proper.