diff options
author | Frederic Riss <friss@apple.com> | 2014-09-04 06:14:28 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2014-09-04 06:14:28 +0000 |
commit | e10ccef9b329fdf4f8c59a5f6e88beb9354c2c49 (patch) | |
tree | 20d0c310cf2203ca37dcc55ec2ae6f644fd1fbea /llvm/lib/DebugInfo/DWARFUnit.cpp | |
parent | eb195f015199c6ed390ca8420ab8bcb45429d213 (diff) | |
download | bcm5719-llvm-e10ccef9b329fdf4f8c59a5f6e88beb9354c2c49.tar.gz bcm5719-llvm-e10ccef9b329fdf4f8c59a5f6e88beb9354c2c49.zip |
Add a DWARFContext& member in DWARFUnit.
The DWARFContext will be used to pass global 'context' down, like
pointers to related debug info sections or command line options.
The first use will be for the debug_info dumper to be able to access
other debug info section to dump eg. Location Expression inline
in the debug_info dump.
llvm-svn: 217128
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFUnit.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFUnit.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARFUnit.cpp index 6ed3e04b7bf..fe75ebe2dc5 100644 --- a/llvm/lib/DebugInfo/DWARFUnit.cpp +++ b/llvm/lib/DebugInfo/DWARFUnit.cpp @@ -17,12 +17,12 @@ using namespace llvm; using namespace dwarf; -DWARFUnit::DWARFUnit(const DWARFDebugAbbrev *DA, StringRef IS, StringRef RS, - StringRef SS, StringRef SOS, StringRef AOS, - const RelocAddrMap *M, bool LE) - : Abbrev(DA), InfoSection(IS), RangeSection(RS), StringSection(SS), - StringOffsetSection(SOS), AddrOffsetSection(AOS), RelocMap(M), - isLittleEndian(LE) { +DWARFUnit::DWARFUnit(DWARFContext &DC, const DWARFDebugAbbrev *DA, + StringRef IS, StringRef RS, StringRef SS, StringRef SOS, + StringRef AOS, const RelocAddrMap *M, bool LE) + : Context(DC), Abbrev(DA), InfoSection(IS), RangeSection(RS), + StringSection(SS), StringOffsetSection(SOS), AddrOffsetSection(AOS), + RelocMap(M), isLittleEndian(LE) { clear(); } |