From 92f6c15d8f40aa81c65bda18149855a0b025a68e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 2 Dec 2004 21:24:19 +0000 Subject: [PATCH] Move the strip pass from Scalar to IPO lib git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18438 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/IPO.h | 7 +++++++ include/llvm/Transforms/Scalar.h | 8 -------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index e85628fba9e..5006b3da69d 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -23,6 +23,13 @@ class ModulePass; class Function; class BasicBlock; +//===----------------------------------------------------------------------===// +// +// These functions removes symbols from functions and modules. If OnlyDebugInfo +// is true, only debugging information is removed from the module. +// +ModulePass *createStripSymbolsPass(bool OnlyDebugInfo = false); + //===----------------------------------------------------------------------===// /// createLowerSetJmpPass - This function lowers the setjmp/longjmp intrinsics /// to invoke/unwind instructions. This should really be part of the C/C++ diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index ae4e6538786..b5af277e7ea 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -276,14 +276,6 @@ FunctionPass *createLowerGCPass(); // into regular LLVM instructions. FunctionPass* createLowerConstantExpressionsPass(); - -//===----------------------------------------------------------------------===// -// -// These functions removes symbols from functions and modules. -// -FunctionPass *createSymbolStrippingPass(); -FunctionPass *createFullSymbolStrippingPass(); - } // End llvm namespace #endif