]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/lib/DebugInfo/DWARFTypeUnit.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / llvm / lib / DebugInfo / DWARFTypeUnit.h
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_DEBUGINFO_DWARFTYPEUNIT_H
11 #define LLVM_DEBUGINFO_DWARFTYPEUNIT_H
12
13 #include "DWARFUnit.h"
14
15 namespace llvm {
16
17 class DWARFTypeUnit : public DWARFUnit {
18 private:
19   uint64_t TypeHash;
20   uint32_t TypeOffset;
21 public:
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);
28 protected:
29   bool extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) LLVM_OVERRIDE;
30 };
31
32 }
33
34 #endif
35