1 //===--- DWARFAcceleratorTable.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_DWARFACCELERATORTABLE_H
11 #define LLVM_LIB_DEBUGINFO_DWARFACCELERATORTABLE_H
13 #include "llvm/ADT/SmallVector.h"
14 #include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
15 #include "llvm/DebugInfo/DWARF/DWARFRelocMap.h"
20 class DWARFAcceleratorTable {
25 uint16_t HashFunction;
28 uint32_t HeaderDataLength;
32 typedef uint16_t AtomType;
33 typedef uint16_t Form;
34 uint32_t DIEOffsetBase;
35 SmallVector<std::pair<AtomType, Form>, 3> Atoms;
39 struct HeaderData HdrData;
40 DataExtractor AccelSection;
41 DataExtractor StringSection;
42 const RelocAddrMap& Relocs;
44 DWARFAcceleratorTable(DataExtractor AccelSection, DataExtractor StringSection,
45 const RelocAddrMap &Relocs)
46 : AccelSection(AccelSection), StringSection(StringSection), Relocs(Relocs) {}
49 void dump(raw_ostream &OS) const;