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
This commit is contained in:
Eric Christopher
2014-02-16 08:46:55 +00:00
parent 268e96a8a6
commit 0cefb0ecbc
8 changed files with 184 additions and 77 deletions

View File

@@ -43,7 +43,7 @@ class MCAsmInfo;
class MCObjectFileInfo;
class DIEAbbrev;
class DIE;
class DIEBlock;
class DIELoc;
class DIEEntry;
//===----------------------------------------------------------------------===//