LLVM 22.0.0git
SymbolRecordMapping.h
Go to the documentation of this file.
1//===- SymbolRecordMapping.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_SYMBOLRECORDMAPPING_H
10#define LLVM_DEBUGINFO_CODEVIEW_SYMBOLRECORDMAPPING_H
11
15
16namespace llvm {
19
20namespace codeview {
22public:
24 CodeViewContainer Container)
25 : IO(Reader), Container(Container) {}
27 CodeViewContainer Container)
28 : IO(Writer), Container(Container) {}
29
30 Error visitSymbolBegin(CVSymbol &Record) override;
31 Error visitSymbolEnd(CVSymbol &Record) override;
32
33#define SYMBOL_RECORD(EnumName, EnumVal, Name) \
34 Error visitKnownRecord(CVSymbol &CVR, Name &Record) override;
35#define SYMBOL_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
36#include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
37
38private:
39 std::optional<SymbolKind> Kind;
40
41 CodeViewRecordIO IO;
42 CodeViewContainer Container;
43};
44}
45}
46
47#endif
#define LLVM_ABI
Definition Compiler.h:213
Provides read only access to a subclass of BinaryStream.
Provides write only access to a subclass of WritableBinaryStream.
Lightweight error class with error context and mandatory checking.
Definition Error.h:159
SymbolRecordMapping(BinaryStreamReader &Reader, CodeViewContainer Container)
SymbolRecordMapping(BinaryStreamWriter &Writer, CodeViewContainer Container)
CVRecord< SymbolKind > CVSymbol
Definition CVRecord.h:65
This is an optimization pass for GlobalISel generic memory operations.