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_DEBUGINFO_DWARFTYPEUNIT_H
11 #define LLVM_DEBUGINFO_DWARFTYPEUNIT_H
13 #include "DWARFUnit.h"
17 class DWARFTypeUnit : public DWARFUnit {
22 DWARFTypeUnit(const DWARFDebugAbbrev *DA, StringRef IS, StringRef AS,
23 StringRef RS, StringRef SS, StringRef SOS, StringRef AOS,
24 const RelocAddrMap *M, bool LE)
25 : DWARFUnit(DA, IS, AS, RS, SS, SOS, AOS, M, LE) {}
26 uint32_t getSize() const LLVM_OVERRIDE { return DWARFUnit::getSize() + 12; }
27 void dump(raw_ostream &OS);
29 bool extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) LLVM_OVERRIDE;