]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/DebugInfo/CodeView/TypeStreamMerger.h
Merge llvm, clang, lld, lldb, compiler-rt and libc++ r303571, and update
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / DebugInfo / CodeView / TypeStreamMerger.h
1 //===- TypeStreamMerger.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_TYPESTREAMMERGER_H
11 #define LLVM_DEBUGINFO_CODEVIEW_TYPESTREAMMERGER_H
12
13 #include "llvm/ADT/ArrayRef.h"
14 #include "llvm/ADT/SmallVector.h"
15 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
16 #include "llvm/Support/Error.h"
17
18 namespace llvm {
19 namespace codeview {
20
21 class TypeIndex;
22 class TypeServerHandler;
23 class TypeTableBuilder;
24
25 /// Merges one type stream into another. Returns true on success.
26 Error mergeTypeStreams(TypeTableBuilder &DestIdStream,
27                        TypeTableBuilder &DestTypeStream,
28                        SmallVectorImpl<TypeIndex> &SourceToDest,
29                        TypeServerHandler *Handler, const CVTypeArray &Types);
30
31 } // end namespace codeview
32 } // end namespace llvm
33
34 #endif // LLVM_DEBUGINFO_CODEVIEW_TYPESTREAMMERGER_H