Fix some layering in StripNonLineTableDebugInfo, moving its declaration from IPO...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 29 Mar 2018 22:42:08 +0000 (22:42 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 29 Mar 2018 22:42:08 +0000 (22:42 +0000)
llvm-svn: 328844

llvm/include/llvm/Transforms/IPO.h
llvm/include/llvm/Transforms/Utils.h
llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp

index e028d35..1514335 100644 (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.
index 51edc51..cfb89d1 100644 (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
index cd0378e..8956a08 100644 (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 {