1 | //===- TypeRecordMapping.cpp ------------------------------------*- 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 | #include "llvm/DebugInfo/CodeView/TypeRecordMapping.h" |
10 | |
11 | #include "llvm/ADT/ArrayRef.h" |
12 | #include "llvm/ADT/STLExtras.h" |
13 | #include "llvm/ADT/SmallString.h" |
14 | #include "llvm/ADT/SmallVector.h" |
15 | #include "llvm/ADT/StringRef.h" |
16 | #include "llvm/DebugInfo/CodeView/CVTypeVisitor.h" |
17 | #include "llvm/DebugInfo/CodeView/CodeViewRecordIO.h" |
18 | #include "llvm/DebugInfo/CodeView/EnumTables.h" |
19 | #include "llvm/DebugInfo/CodeView/RecordSerialization.h" |
20 | #include "llvm/DebugInfo/CodeView/TypeIndex.h" |
21 | #include "llvm/DebugInfo/CodeView/TypeRecord.h" |
22 | #include "llvm/Support/ErrorHandling.h" |
23 | #include "llvm/Support/MD5.h" |
24 | #include "llvm/Support/ScopedPrinter.h" |
25 | |
26 | #include <algorithm> |
27 | #include <cassert> |
28 | #include <cstddef> |
29 | #include <cstdint> |
30 | #include <string> |
31 | #include <vector> |
32 | |
33 | using namespace llvm; |
34 | using namespace llvm::codeview; |
35 | |
36 | namespace { |
37 | |
38 | #define error(X) \ |
39 | do { \ |
40 | if (auto |