Debug info: Factor out the creation of DWARF expressions from AsmPrinter
authorAdrian Prantl <aprantl@apple.com>
Mon, 12 Jan 2015 22:19:22 +0000 (22:19 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 12 Jan 2015 22:19:22 +0000 (22:19 +0000)
commitf89325d832028de896955978591ba08337653cc2
tree7ca03f37c7172a31580fbb0bf6c0531ddda3fed1
parent9e8d3bc46a588c293fb4387d94d7b285c7f68ca5
Debug info: Factor out the creation of DWARF expressions from AsmPrinter
into a new class DwarfExpression that can be shared between AsmPrinter
and DwarfUnit.

This is the first step towards unifying the two entirely redundant
implementations of dwarf expression emission in DwarfUnit and AsmPrinter.

Almost no functional change — Testcases were updated because asm comments
that used to be on two lines now appear on the same line, which is
actually preferable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225706 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
lib/CodeGen/AsmPrinter/CMakeLists.txt
lib/CodeGen/AsmPrinter/DwarfExpression.cpp [new file with mode: 0644]
lib/CodeGen/AsmPrinter/DwarfExpression.h [new file with mode: 0644]
test/CodeGen/ARM/debug-info-qreg.ll
test/CodeGen/ARM/debug-info-s16-reg.ll
test/DebugInfo/X86/subreg.ll