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"
16 #include "llvm/Support/Dwarf.h"
21 class DWARFAcceleratorTable {
26 uint16_t HashFunction;
29 uint32_t HeaderDataLength;
33 typedef uint16_t AtomType;
34 typedef dwarf::Form Form;
35 uint32_t DIEOffsetBase;
36 SmallVector<std::pair<AtomType, Form>, 3> Atoms;
40 struct HeaderData HdrData;
41 DataExtractor AccelSection;
42 DataExtractor StringSection;
43 const RelocAddrMap& Relocs;
45 DWARFAcceleratorTable(DataExtractor AccelSection, DataExtractor StringSection,
46 const RelocAddrMap &Relocs)
47 : AccelSection(AccelSection), StringSection(StringSection), Relocs(Relocs) {}
50 void dump(raw_ostream &OS) const;