[llvm] r328844 - Fix some layering in StripNonLineTableDebugInfo, moving its declaration from IPO.h to Utils.h to match its implementation
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 29 15:42:08 PDT 2018
Author: dblaikie
Date: Thu Mar 29 15:42:08 2018
New Revision: 328844
URL: http://llvm.org/viewvc/llvm-project?rev=328844&view=rev
Log:
Fix some layering in StripNonLineTableDebugInfo, moving its declaration from IPO.h to Utils.h to match its implementation
Modified:
llvm/trunk/include/llvm/Transforms/IPO.h
llvm/trunk/include/llvm/Transforms/Utils.h
llvm/trunk/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp
Modified: llvm/trunk/include/llvm/Transforms/IPO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/IPO.h?rev=328844&r1=328843&r2=328844&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/IPO.h (original)
+++ llvm/trunk/include/llvm/Transforms/IPO.h Thu Mar 29 15:42:08 2018
@@ -45,10 +45,6 @@ ModulePass *createStripSymbolsPass(bool
//
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.
Modified: llvm/trunk/include/llvm/Transforms/Utils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils.h?rev=328844&r1=328843&r2=328844&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils.h Thu Mar 29 15:42:08 2018
@@ -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
Modified: llvm/trunk/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp?rev=328844&r1=328843&r2=328844&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/StripNonLineTableDebugInfo.cpp Thu Mar 29 15:42:08 2018
@@ -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 {
More information about the llvm-commits
mailing list