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 #include "DWARFRelocMap.h"
12 #include "llvm/ADT/SmallVector.h"
13 #include "llvm/DebugInfo/DWARFFormValue.h"
19 class DWARFAcceleratorTable {
24 uint16_t HashFunction;
27 uint32_t HeaderDataLength;
31 typedef uint16_t AtomType;
32 typedef uint16_t Form;
33 uint32_t DIEOffsetBase;
34 SmallVector<std::pair<AtomType, Form>, 3> Atoms;
38 struct HeaderData HdrData;
39 DataExtractor AccelSection;
40 DataExtractor StringSection;
41 const RelocAddrMap& Relocs;
43 DWARFAcceleratorTable(DataExtractor AccelSection, DataExtractor StringSection,
44 const RelocAddrMap &Relocs)
45 : AccelSection(AccelSection), StringSection(StringSection), Relocs(Relocs) {}
48 void dump(raw_ostream &OS) const;