Store TypeUnits in a SmallVector<DWARFUnitSection> instead of a single DWARFUnitSection.
authorFrederic Riss <friss@apple.com>
Fri, 26 Sep 2014 12:15:40 +0000 (12:15 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 26 Sep 2014 12:15:40 +0000 (12:15 +0000)
commit5fb5bdbf6ad273681a12d67b90e23aa0116c0426
tree903658c027c38f78a2dcf7f22a971802d5433de4
parent12aa552637b05c7886917f5ab7006e32884c1f8d
Store TypeUnits in a SmallVector<DWARFUnitSection> instead of a single DWARFUnitSection.

Summary:
There will be multiple TypeUnits in an unlinked object that will be extracted
from different sections. Now that we have DWARFUnitSection that is supposed
to represent an input section, we need a DWARFUnitSection<TypeUnit> per
input .debug_types section.

Once this is done, the interface is homogenous and we can move the Section
parsing code into DWARFUnitSection.

Reviewers: samsonov, dblaikie

Subscribers: llvm-commits

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

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