]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/DebugInfo/CodeView/TypeIndexDiscovery.h
Merge ^/head r319165 through r319250.
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / DebugInfo / CodeView / TypeIndexDiscovery.h
1 //===- TypeIndexDiscovery.h -------------------------------------*- C++ -*-===//
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_DEBUGINFO_CODEVIEW_TYPEINDEXDISCOVERY_H
11 #define LLVM_DEBUGINFO_CODEVIEW_TYPEINDEXDISCOVERY_H
12
13 #include "llvm/ADT/SmallVector.h"
14 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
15 #include "llvm/Support/Error.h"
16
17 namespace llvm {
18 namespace codeview {
19 enum class TiRefKind { TypeRef, IndexRef };
20 struct TiReference {
21   TiRefKind Kind;
22   uint32_t Offset;
23   uint32_t Count;
24 };
25
26 void discoverTypeIndices(ArrayRef<uint8_t> RecordData,
27                          SmallVectorImpl<TiReference> &Refs);
28 void discoverTypeIndices(const CVType &Type,
29                          SmallVectorImpl<TiReference> &Refs);
30 }
31 }
32
33 #endif