DebugInfo: Introduce the notion of "form classes"
authorAlexey Samsonov <samsonov@google.com>
Mon, 28 Oct 2013 23:01:48 +0000 (23:01 +0000)
committerAlexey Samsonov <samsonov@google.com>
Mon, 28 Oct 2013 23:01:48 +0000 (23:01 +0000)
commit48cbda5850264671e982ecdd834c1587b1732c15
treefceb336b9978d09dbaa90b78b3ee5028c40e6b19
parent0a09ebf445339748b549d7c8743fcb7e435d3527
DebugInfo: Introduce the notion of "form classes"

Summary:
Use DWARF4 table of form classes to fetch attributes from DIE
in a more consistent way. This shouldn't change the functionality and
serves as a refactoring for upcoming change: DW_AT_high_pc has different
semantics depending on its form class.

Reviewers: dblaikie, echristo

Reviewed By: echristo

CC: echristo, llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1961

llvm-svn: 193553
llvm/include/llvm/DebugInfo/DWARFFormValue.h
llvm/lib/DebugInfo/DWARFContext.cpp
llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
llvm/lib/DebugInfo/DWARFFormValue.cpp
llvm/lib/DebugInfo/DWARFUnit.cpp
llvm/unittests/DebugInfo/DWARFFormValueTest.cpp