forked from OSchip/llvm-project
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:
parent
f001ead490
commit
f423062aff
|
@ -45,10 +45,6 @@ ModulePass *createStripSymbolsPass(bool OnlyDebugInfo = false);
|
||||||
//
|
//
|
||||||
ModulePass *createStripNonDebugSymbolsPass();
|
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.
|
// This pass removes llvm.dbg.declare intrinsics.
|
||||||
|
|
|
@ -116,6 +116,10 @@ extern char &LoopSimplifyID;
|
||||||
//
|
//
|
||||||
FunctionPass *createInstructionSimplifierPass();
|
FunctionPass *createInstructionSimplifierPass();
|
||||||
extern char &InstructionSimplifierID;
|
extern char &InstructionSimplifierID;
|
||||||
|
|
||||||
|
/// This function returns a new pass that downgrades the debug info in the
|
||||||
|
/// module to line tables only.
|
||||||
|
ModulePass *createStripNonLineTableDebugInfoPass();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#include "llvm/IR/DebugInfo.h"
|
#include "llvm/IR/DebugInfo.h"
|
||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
#include "llvm/Transforms/IPO.h"
|
#include "llvm/Transforms/Utils.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
Loading…
Reference in New Issue