X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FLiveDebugVariables.h;h=3d36f4d2494a525a6057c95bb39fea0b901aaf04;hb=7deb7ebf8850bdf9c48504d3b0525ecab1312525;hp=1d449fd10bf0bdb3ddacb4d38eceffff856ee923;hpb=15f387c93ef8d5c23f110143996c8b9b4a089864;p=oota-llvm.git diff --git a/lib/CodeGen/LiveDebugVariables.h b/lib/CodeGen/LiveDebugVariables.h index 1d449fd10bf..3d36f4d2494 100644 --- a/lib/CodeGen/LiveDebugVariables.h +++ b/lib/CodeGen/LiveDebugVariables.h @@ -18,11 +18,12 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CODEGEN_LIVEDEBUGVARIABLES_H -#define LLVM_CODEGEN_LIVEDEBUGVARIABLES_H +#ifndef LLVM_LIB_CODEGEN_LIVEDEBUGVARIABLES_H +#define LLVM_LIB_CODEGEN_LIVEDEBUGVARIABLES_H #include "llvm/ADT/ArrayRef.h" #include "llvm/CodeGen/MachineFunctionPass.h" +#include "llvm/IR/DebugInfo.h" namespace llvm { @@ -32,11 +33,12 @@ class VirtRegMap; class LLVM_LIBRARY_VISIBILITY LiveDebugVariables : public MachineFunctionPass { void *pImpl; + public: static char ID; // Pass identification, replacement for typeid LiveDebugVariables(); - ~LiveDebugVariables(); + ~LiveDebugVariables() override; /// renameRegister - Move any user variables in OldReg to NewReg:SubIdx. /// @param OldReg Old virtual register that is going away. @@ -61,12 +63,13 @@ public: private: - virtual bool runOnMachineFunction(MachineFunction &); - virtual void releaseMemory(); - virtual void getAnalysisUsage(AnalysisUsage &) const; + bool runOnMachineFunction(MachineFunction &) override; + void releaseMemory() override; + void getAnalysisUsage(AnalysisUsage &) const override; + bool doInitialization(Module &) override; }; } // namespace llvm -#endif // LLVM_CODEGEN_LIVEDEBUGVARIABLES_H +#endif