Format my previous commit
[oota-llvm.git] / include / llvm / DebugInfo / DWARF / DWARFUnitIndex.h
1 //===-- DWARFUnitIndex.h --------------------------------------------------===//
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_LIB_DEBUGINFO_DWARFUNITINDEX_H
11 #define LLVM_LIB_DEBUGINFO_DWARFUNITINDEX_H
12
13 #include "llvm/Support/DataExtractor.h"
14 #include "llvm/Support/Format.h"
15 #include "llvm/Support/raw_ostream.h"
16 #include <cstdint>
17
18 namespace llvm {
19
20 class DWARFUnitIndex {
21   class Header {
22     uint32_t Version;
23     uint32_t NumColumns;
24     uint32_t NumUnits;
25     uint32_t NumBuckets;
26
27   public:
28     bool parse(DataExtractor IndexData, uint32_t *OffsetPtr);
29     void dump(raw_ostream &OS) const;
30   };
31
32   class Header Header;
33
34 public:
35   bool parse(DataExtractor IndexData);
36   void dump(raw_ostream &OS) const;
37 };
38 }
39
40 #endif