X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FLiveDebugVariables.h;h=7e3b361e331a6bbba23c502a6b0596408d050f58;hb=f15492fd7292563049ace40be9a2e0048e64b8f0;hp=bb6743547e3d20efe7cca8f0554afe71dc537e2e;hpb=529165298e16ac3ac0e92055ec9b140811a8cb95;p=oota-llvm.git diff --git a/lib/CodeGen/LiveDebugVariables.h b/lib/CodeGen/LiveDebugVariables.h index bb6743547e3..7e3b361e331 100644 --- a/lib/CodeGen/LiveDebugVariables.h +++ b/lib/CodeGen/LiveDebugVariables.h @@ -18,10 +18,11 @@ // //===----------------------------------------------------------------------===// -#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/IR/DebugInfo.h" #include "llvm/CodeGen/MachineFunctionPass.h" namespace llvm { @@ -32,6 +33,7 @@ class VirtRegMap; class LiveDebugVariables : public MachineFunctionPass { void *pImpl; + DenseMap FunctionDIs; public: static char ID; // Pass identification, replacement for typeid @@ -64,9 +66,10 @@ private: bool runOnMachineFunction(MachineFunction &) override; void releaseMemory() override; void getAnalysisUsage(AnalysisUsage &) const override; + bool doInitialization(Module &) override; }; } // namespace llvm -#endif // LLVM_CODEGEN_LIVEDEBUGVARIABLES_H +#endif