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)
commitc5253237f8b3b4eb888f7f85f39acd7d4d0f57cf
tree203b75962c5da40e7263f2ca12d9452fe602fef3
parent730e3c69952d4f26a0c51b55902ac55c88238ee8
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193553 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARFFormValue.h
lib/DebugInfo/DWARFContext.cpp
lib/DebugInfo/DWARFDebugInfoEntry.cpp
lib/DebugInfo/DWARFDebugInfoEntry.h
lib/DebugInfo/DWARFFormValue.cpp
lib/DebugInfo/DWARFUnit.cpp
unittests/DebugInfo/DWARFFormValueTest.cpp