summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFCompileUnit.h
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-09-15 07:50:27 +0000
committerFrederic Riss <friss@apple.com>2014-09-15 07:50:27 +0000
commit4e126a0011973a63f2e674c2a08ab5f987bd0544 (patch)
tree8d7ac39496de977d549dddd6c8228990a0b89682 /llvm/lib/DebugInfo/DWARFCompileUnit.h
parent7dad93bec2657b444d02d027c7e41efd6c540c74 (diff)
downloadbcm5719-llvm-4e126a0011973a63f2e674c2a08ab5f987bd0544.tar.gz
bcm5719-llvm-4e126a0011973a63f2e674c2a08ab5f987bd0544.zip
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 llvm-svn: 217747
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFCompileUnit.h')
-rw-r--r--llvm/lib/DebugInfo/DWARFCompileUnit.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARFCompileUnit.h b/llvm/lib/DebugInfo/DWARFCompileUnit.h
index bf875fbe41f..47c7191d96e 100644
--- a/llvm/lib/DebugInfo/DWARFCompileUnit.h
+++ b/llvm/lib/DebugInfo/DWARFCompileUnit.h
@@ -18,8 +18,9 @@ class DWARFCompileUnit : public DWARFUnit {
public:
DWARFCompileUnit(DWARFContext& Context, const DWARFDebugAbbrev *DA,
StringRef IS, StringRef RS, StringRef SS, StringRef SOS,
- StringRef AOS, const RelocAddrMap *M, bool LE)
- : DWARFUnit(Context, DA, IS, RS, SS, SOS, AOS, M, LE) {}
+ StringRef AOS, const RelocAddrMap *M, bool LE,
+ const DWARFUnitSectionBase &UnitSection)
+ : DWARFUnit(Context, DA, IS, RS, SS, SOS, AOS, M, LE, UnitSection) {}
void dump(raw_ostream &OS);
// VTable anchor.
~DWARFCompileUnit() override;
OpenPOWER on IntegriCloud