mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217128 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -19,10 +19,10 @@ private:
|
||||
uint64_t TypeHash;
|
||||
uint32_t TypeOffset;
|
||||
public:
|
||||
DWARFTypeUnit(const DWARFDebugAbbrev *DA, StringRef IS, StringRef RS,
|
||||
StringRef SS, StringRef SOS, StringRef AOS,
|
||||
const RelocAddrMap *M, bool LE)
|
||||
: DWARFUnit(DA, IS, RS, SS, SOS, AOS, M, LE) {}
|
||||
DWARFTypeUnit(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) {}
|
||||
uint32_t getHeaderSize() const override {
|
||||
return DWARFUnit::getHeaderSize() + 12;
|
||||
}
|
||||
|
Reference in New Issue
Block a user