LLVM  8.0.1
SymbolRecordMapping.h
Go to the documentation of this file.
1 //===- SymbolRecordMapping.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_SYMBOLRECORDMAPPING_H
11 #define LLVM_DEBUGINFO_CODEVIEW_SYMBOLRECORDMAPPING_H
12 
15 
16 namespace llvm {
17 class BinaryStreamReader;
18 class BinaryStreamWriter;
19 
20 namespace codeview {
22 public:
24  CodeViewContainer Container)
25  : IO(Reader), Container(Container) {}
27  CodeViewContainer Container)
28  : IO(Writer), Container(Container) {}
29 
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 
38 private:
39  Optional<SymbolKind> Kind;
40 
41  CodeViewRecordIO IO;
42  CodeViewContainer Container;
43 };
44 }
45 }
46 
47 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
Provides write only access to a subclass of WritableBinaryStream.
Error visitSymbolEnd(CVSymbol &Record) override
SymbolRecordMapping(BinaryStreamWriter &Writer, CodeViewContainer Container)
SymbolRecordMapping(BinaryStreamReader &Reader, CodeViewContainer Container)
Lightweight error class with error context and mandatory checking.
Definition: Error.h:158
Provides read only access to a subclass of BinaryStream.
Error visitSymbolBegin(CVSymbol &Record) override