summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFUnit.cpp
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-09-04 06:14:28 +0000
committerFrederic Riss <friss@apple.com>2014-09-04 06:14:28 +0000
commite10ccef9b329fdf4f8c59a5f6e88beb9354c2c49 (patch)
tree20d0c310cf2203ca37dcc55ec2ae6f644fd1fbea /llvm/lib/DebugInfo/DWARFUnit.cpp
parenteb195f015199c6ed390ca8420ab8bcb45429d213 (diff)
downloadbcm5719-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.cpp12
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();
}
OpenPOWER on IntegriCloud