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_DEBUGINFO_DWARFACCELERATORTABLE_H
11 #define LLVM_DEBUGINFO_DWARFACCELERATORTABLE_H
13 #include "llvm/ADT/SmallVector.h"
14 #include "llvm/DebugInfo/DWARF/DWARFRelocMap.h"
15 #include "llvm/Support/DataExtractor.h"
16 #include "llvm/Support/Dwarf.h"
24 class DWARFAcceleratorTable {
28 uint16_t HashFunction;
31 uint32_t HeaderDataLength;
35 typedef uint16_t AtomType;
36 typedef dwarf::Form Form;
37 uint32_t DIEOffsetBase;
38 SmallVector<std::pair<AtomType, Form>, 3> Atoms;
42 struct HeaderData HdrData;
43 DataExtractor AccelSection;
44 DataExtractor StringSection;
45 const RelocAddrMap& Relocs;
48 DWARFAcceleratorTable(DataExtractor AccelSection, DataExtractor StringSection,
49 const RelocAddrMap &Relocs)
50 : AccelSection(AccelSection), StringSection(StringSection), Relocs(Relocs) {}
53 void dump(raw_ostream &OS) const;
56 } // end namespace llvm
58 #endif // LLVM_DEBUGINFO_DWARFACCELERATORTABLE_H