1 //===-- DWARFTypeUnit.h -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_DEBUGINFO_DWARFTYPEUNIT_H
11 #define LLVM_LIB_DEBUGINFO_DWARFTYPEUNIT_H
13 #include "DWARFUnit.h"
17 class DWARFTypeUnit : public DWARFUnit {
22 DWARFTypeUnit(DWARFContext &Context, const DWARFDebugAbbrev *DA,
23 StringRef IS, StringRef RS, StringRef SS, StringRef SOS,
24 StringRef AOS, const RelocAddrMap *M, bool LE,
25 const DWARFUnitSectionBase &UnitSection)
26 : DWARFUnit(Context, DA, IS, RS, SS, SOS, AOS, M, LE, UnitSection) {}
27 uint32_t getHeaderSize() const override {
28 return DWARFUnit::getHeaderSize() + 12;
30 void dump(raw_ostream &OS);
32 bool extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) override;