summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2018-03-29 22:42:08 +0000
committerDavid Blaikie <dblaikie@gmail.com>2018-03-29 22:42:08 +0000
commitf423062aff913a7f7867de74e7c984b43124b300 (patch)
tree4bd40d07ca5bdd68cd32f528c2cfa8ffa4ac47ea
parentf001ead490ce0fdf91987351240af5db75d6f8df (diff)
downloadbcm5719-llvm-f423062aff913a7f7867de74e7c984b43124b300.tar.gz
bcm5719-llvm-f423062aff913a7f7867de74e7c984b43124b300.zip
Fix some layering in StripNonLineTableDebugInfo, moving its declaration from IPO.h to Utils.h to match its implementation
llvm-svn: 328844
-rw-r--r--llvm/include/llvm/Transforms/IPO.h4
-rw-r--r--llvm/include/llvm/Transforms/Utils.h4
-rw-r--r--llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/Transforms/IPO.h b/llvm/include/llvm/Transforms/IPO.h
index e028d350bd1..1514335889c 100644
--- a/llvm/include/llvm/Transforms/IPO.h
+++ b/llvm/include/llvm/Transforms/IPO.h
@@ -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.
diff --git a/llvm/include/llvm/Transforms/Utils.h b/llvm/include/llvm/Transforms/Utils.h
index 51edc51e038..cfb89d1bb75 100644
--- a/llvm/include/llvm/Transforms/Utils.h
+++ b/llvm/include/llvm/Transforms/Utils.h
@@ -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
diff --git a/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp b/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp
index cd0378e0140..8956a089a99 100644
--- a/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp
+++ b/llvm/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp
@@ -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 {
OpenPOWER on IntegriCloud