Fix some layering in StripNonLineTableDebugInfo, moving its declaration from IPO.h to Utils.h to match its implementation

llvm-svn: 328844
This commit is contained in:
David Blaikie 2018-03-29 22:42:08 +00:00
parent f001ead490
commit f423062aff
3 changed files with 5 additions and 5 deletions

View File

@ -45,10 +45,6 @@ ModulePass *createStripSymbolsPass(bool OnlyDebugInfo = false);
//
ModulePass *createStripNonDebugSymbolsPass();
/// This function returns a new pass that downgrades the debug info in the
/// module to line tables only.
ModulePass *createStripNonLineTableDebugInfoPass();
//===----------------------------------------------------------------------===//
//
// This pass removes llvm.dbg.declare intrinsics.

View File

@ -116,6 +116,10 @@ extern char &LoopSimplifyID;
//
FunctionPass *createInstructionSimplifierPass();
extern char &InstructionSimplifierID;
/// This function returns a new pass that downgrades the debug info in the
/// module to line tables only.
ModulePass *createStripNonLineTableDebugInfoPass();
}
#endif

View File

@ -9,7 +9,7 @@
#include "llvm/IR/DebugInfo.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Utils.h"
using namespace llvm;
namespace {