]> git.proxmox.com Git - rustc.git/blame - src/llvm/include/llvm/DebugInfo/DWARFTypeUnit.h
Imported Upstream version 1.0.0+dfsg1
[rustc.git] / src / llvm / include / llvm / DebugInfo / DWARFTypeUnit.h
CommitLineData
1a4d82fc
JJ
1//===-- DWARFTypeUnit.h -----------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_LIB_DEBUGINFO_DWARFTYPEUNIT_H
11#define LLVM_LIB_DEBUGINFO_DWARFTYPEUNIT_H
12
85aaf69f 13#include "llvm/DebugInfo/DWARFUnit.h"
1a4d82fc
JJ
14
15namespace llvm {
16
17class DWARFTypeUnit : public DWARFUnit {
18private:
19 uint64_t TypeHash;
20 uint32_t TypeOffset;
21public:
85aaf69f
SL
22 DWARFTypeUnit(DWARFContext &Context, const DWARFSection &Section,
23 const DWARFDebugAbbrev *DA, StringRef RS, StringRef SS,
24 StringRef SOS, StringRef AOS, bool LE,
1a4d82fc 25 const DWARFUnitSectionBase &UnitSection)
85aaf69f 26 : DWARFUnit(Context, Section, DA, RS, SS, SOS, AOS, LE, UnitSection) {}
1a4d82fc
JJ
27 uint32_t getHeaderSize() const override {
28 return DWARFUnit::getHeaderSize() + 12;
29 }
30 void dump(raw_ostream &OS);
31protected:
32 bool extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) override;
33};
34
35}
36
37#endif
38