OSDN Git Service

Introduce the DWARFUnitSection abstraction.
authorFrederic Riss <friss@apple.com>
Mon, 15 Sep 2014 07:50:27 +0000 (07:50 +0000)
committerFrederic Riss <friss@apple.com>
Mon, 15 Sep 2014 07:50:27 +0000 (07:50 +0000)
commitea3ce67d712a83c683732769aa1d8e6607a92613
tree0da0c9721ece41319d42b6b2d34e8ebabb84053e
parentb1287f54cfdceb0dfad9d271adcb129d79c2ca3e
Introduce the DWARFUnitSection abstraction.

A DWARFUnitSection is the collection of Units that have been extracted from
the same debug section.

By embeding a reference to their DWARFUnitSection in each unit, the DIEs
will be able to resolve inter-unit references by interrogating their Unit's
DWARFUnitSection.

This is a minimal patch where the DWARFUnitSection is-a SmallVector of Units,
thus exposing exactly the same interface as before. Followup-up patches might
change from inheritance to composition in order to expose only the wanted
DWARFUnitSection abstraction.

    Differential Revision: http://reviews.llvm.org/D5310

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217747 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARFCompileUnit.h
lib/DebugInfo/DWARFContext.cpp
lib/DebugInfo/DWARFContext.h
lib/DebugInfo/DWARFTypeUnit.h
lib/DebugInfo/DWARFUnit.cpp
lib/DebugInfo/DWARFUnit.h