From 5df3d89009536306ef278a123feadc9ea0760a85 Mon Sep 17 00:00:00 2001 From: Eugene Zelenko Date: Thu, 24 Aug 2017 21:21:39 +0000 Subject: [CodeGen] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). llvm-svn: 311703 --- llvm/lib/CodeGen/LiveDebugVariables.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'llvm/lib/CodeGen/LiveDebugVariables.h') diff --git a/llvm/lib/CodeGen/LiveDebugVariables.h b/llvm/lib/CodeGen/LiveDebugVariables.h index 1d7e3d4371a..aa35880b063 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.h +++ b/llvm/lib/CodeGen/LiveDebugVariables.h @@ -1,4 +1,4 @@ -//===- LiveDebugVariables.h - Tracking debug info variables ----*- c++ -*--===// +//===- LiveDebugVariables.h - Tracking debug info variables -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -22,17 +22,16 @@ #define LLVM_LIB_CODEGEN_LIVEDEBUGVARIABLES_H #include "llvm/CodeGen/MachineFunctionPass.h" -#include "llvm/IR/DebugInfo.h" +#include "llvm/Support/Compiler.h" namespace llvm { template class ArrayRef; -class LiveInterval; class LiveIntervals; class VirtRegMap; class LLVM_LIBRARY_VISIBILITY LiveDebugVariables : public MachineFunctionPass { - void *pImpl; + void *pImpl = nullptr; public: static char ID; // Pass identification, replacement for typeid @@ -62,14 +61,12 @@ public: void dump() const; private: - bool runOnMachineFunction(MachineFunction &) override; void releaseMemory() override; void getAnalysisUsage(AnalysisUsage &) const override; bool doInitialization(Module &) override; - }; -} // namespace llvm +} // end namespace llvm -#endif +#endif // LLVM_LIB_CODEGEN_LIVEDEBUGVARIABLES_H -- cgit v1.2.3