1 //===- TypeIndexDiscovery.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_CODEVIEW_TYPEINDEXDISCOVERY_H
11 #define LLVM_DEBUGINFO_CODEVIEW_TYPEINDEXDISCOVERY_H
13 #include "llvm/ADT/SmallVector.h"
14 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
15 #include "llvm/Support/Error.h"
19 enum class TiRefKind { TypeRef, IndexRef };
26 void discoverTypeIndices(ArrayRef<uint8_t> RecordData,
27 SmallVectorImpl<TiReference> &Refs);
28 void discoverTypeIndices(const CVType &Type,
29 SmallVectorImpl<TiReference> &Refs);