diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
commit | 67c32a98315f785a9ec9d531c1f571a0196c7463 (patch) | |
tree | 4abb9cbeecc7901726dd0b4a37369596c852e9ef /lib/CodeGen/LiveDebugVariables.h | |
parent | 9f61947910e6ab40de38e6b4034751ef1513200f (diff) |
Diffstat (limited to 'lib/CodeGen/LiveDebugVariables.h')
-rw-r--r-- | lib/CodeGen/LiveDebugVariables.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveDebugVariables.h b/lib/CodeGen/LiveDebugVariables.h index bb6743547e3d2..9748329314d67 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,6 +33,7 @@ class VirtRegMap; class LiveDebugVariables : public MachineFunctionPass { void *pImpl; + DenseMap<const Function*, DISubprogram> 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 |