LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DWARFTypeUnit.h
Go to the documentation of this file.
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:
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 
uint32_t getSize() const LLVM_OVERRIDE
Size in bytes of the compile unit header.
Definition: DWARFTypeUnit.h:26
void dump(raw_ostream &OS)
DWARFTypeUnit(const DWARFDebugAbbrev *DA, StringRef IS, StringRef AS, StringRef RS, StringRef SS, StringRef SOS, StringRef AOS, const RelocAddrMap *M, bool LE)
Definition: DWARFTypeUnit.h:22
virtual uint32_t getSize() const
Size in bytes of the compile unit header.
Definition: DWARFUnit.h:107
bool extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) LLVM_OVERRIDE
#define LLVM_OVERRIDE
Definition: Compiler.h:155