diff options
author | Vedant Kumar <vsk@apple.com> | 2018-06-01 22:33:15 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-06-01 22:33:15 +0000 |
commit | 7224c08141f03c6d73fe1d89b97db9a61b1852f8 (patch) | |
tree | 21c3e8f1850dc6571f12527d921c3940ce6566b7 /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | |
parent | aa747412b13aa3f8361257d3dbec04fbca5c8778 (diff) | |
download | llvm-7224c08141f03c6d73fe1d89b97db9a61b1852f8.zip llvm-7224c08141f03c6d73fe1d89b97db9a61b1852f8.tar.gz llvm-7224c08141f03c6d73fe1d89b97db9a61b1852f8.tar.bz2 |
Add a debug dump for DbgValueHistoryMap
This makes it easier to inspect the results of
DbgValueHistoryCalculator.
Differential Revision: https://reviews.llvm.org/D47663
llvm-svn: 333801
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp index edf66e93..82e14dc 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp @@ -25,6 +25,8 @@ using namespace llvm; +#define DEBUG_TYPE "dwarfdebug" + Optional<DbgVariableLocation> DbgVariableLocation::extractFromMachineInstruction( const MachineInstr &Instruction) { @@ -190,6 +192,7 @@ void DebugHandlerBase::beginFunction(const MachineFunction *MF) { assert(DbgValues.empty() && "DbgValues map wasn't cleaned!"); calculateDbgValueHistory(MF, Asm->MF->getSubtarget().getRegisterInfo(), DbgValues); + LLVM_DEBUG(DbgValues.dump()); // Request labels for the full history. for (const auto &I : DbgValues) { |