From 398ba37230431b6ab263cf91bf4c03e4f2c7acb8 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 4 Sep 2020 13:27:42 -0700 Subject: [PATCH] [LiveDebugVariables] Delete unneeded doInitialization --- llvm/lib/CodeGen/LiveDebugVariables.cpp | 4 ---- llvm/lib/CodeGen/LiveDebugVariables.h | 1 - 2 files changed, 5 deletions(-) diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index dd0a900..97cc7a0 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -1444,10 +1444,6 @@ void LiveDebugVariables::emitDebugValues(VirtRegMap *VRM) { static_cast(pImpl)->emitDebugValues(VRM); } -bool LiveDebugVariables::doInitialization(Module &M) { - return Pass::doInitialization(M); -} - #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void LiveDebugVariables::dump() const { if (pImpl) diff --git a/llvm/lib/CodeGen/LiveDebugVariables.h b/llvm/lib/CodeGen/LiveDebugVariables.h index 74e738e..07dd3a8 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.h +++ b/llvm/lib/CodeGen/LiveDebugVariables.h @@ -56,7 +56,6 @@ private: bool runOnMachineFunction(MachineFunction &) override; void releaseMemory() override; void getAnalysisUsage(AnalysisUsage &) const override; - bool doInitialization(Module &) override; }; } // end namespace llvm -- 2.7.4