From: David Blaikie Date: Thu, 29 Mar 2018 22:42:08 +0000 (+0000) Subject: Fix some layering in StripNonLineTableDebugInfo, moving its declaration from IPO... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f423062aff913a7f7867de74e7c984b43124b300;p=platform%2Fupstream%2Fllvm.git Fix some layering in StripNonLineTableDebugInfo, moving its declaration from IPO.h to Utils.h to match its implementation llvm-svn: 328844 --- diff --git a/llvm/include/llvm/Transforms/IPO.h b/llvm/include/llvm/Transforms/IPO.h index e028d35..1514335 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 51edc51..cfb89d1 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 cd0378e..8956a08 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 {