LLVM  9.0.0svn
TypeIndexDiscovery.h
Go to the documentation of this file.
1 //===- TypeIndexDiscovery.h -------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_CODEVIEW_TYPEINDEXDISCOVERY_H
10 #define LLVM_DEBUGINFO_CODEVIEW_TYPEINDEXDISCOVERY_H
11 
12 #include "llvm/ADT/SmallVector.h"
15 #include "llvm/Support/Error.h"
16 
17 namespace llvm {
18 namespace codeview {
19 enum class TiRefKind { TypeRef, IndexRef };
20 struct TiReference {
24 };
25 
28 void discoverTypeIndices(const CVType &Type,
30 void discoverTypeIndices(const CVType &Type,
34 
35 /// Discover type indices in symbol records. Returns false if this is an unknown
36 /// record.
43 }
44 }
45 
46 #endif
void discoverTypeIndices(ArrayRef< uint8_t > RecordData, SmallVectorImpl< TiReference > &Refs)
This class represents lattice values for constants.
Definition: AllocatorList.h:23
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: APFloat.h:41
The instances of the Type class are immutable: once they are created, they are never changed...
Definition: Type.h:45
bool discoverTypeIndicesInSymbol(const CVSymbol &Symbol, SmallVectorImpl< TiReference > &Refs)
Discover type indices in symbol records.