Add a DIELoc class to cover the DW_FORM_exprloc set of expressions
authorEric Christopher <echristo@gmail.com>
Sun, 16 Feb 2014 08:46:55 +0000 (08:46 +0000)
committerEric Christopher <echristo@gmail.com>
Sun, 16 Feb 2014 08:46:55 +0000 (08:46 +0000)
commit0cefb0ecbc995f53fc8724105fa4a42bebbf4110
tree3919f48eb3c4ff9ef3b48f6986c62db2109beb0a
parent268e96a8a61cecfc7000e300b8e39e9e15ce756b
Add a DIELoc class to cover the DW_FORM_exprloc set of expressions
alongside DIEBlock and replace uses accordingly. Use DW_FORM_exprloc
in DWARF4 and later code. Update testcases.

Adding a DIELoc instead of using extra forms inside DIEBlock so
that we can keep location expressions separate from other uses. No
direct use at the moment, however, it's not a lot of code and
using a separately named class keeps it somewhat more obvious
what's going on in various locations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201481 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DIE.cpp
lib/CodeGen/AsmPrinter/DIE.h
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.h
test/DebugInfo/X86/dbg-merge-loc-entry.ll
test/DebugInfo/X86/fission-cu.ll
test/DebugInfo/X86/template.ll