LLVM: lib/DebugInfo/CodeView/DebugSymbolsSubsection.cpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
11
12using namespace llvm;
14
18
22
24 for (const auto &Record : Records) {
26 return EC;
27 }
29}
30
32 Records.push_back(Symbol);
33 Length += Symbol.length();
34}
Provides read only access to a subclass of BinaryStream.
uint64_t getLength() const
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...
Provides write only access to a subclass of WritableBinaryStream.
LLVM_ABI Error writeBytes(ArrayRef< uint8_t > Buffer)
Write the bytes specified in Buffer to the underlying stream.
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
LLVM_ABI Error initialize(BinaryStreamReader Reader)
Definition DebugSymbolsSubsection.cpp:15
void addSymbol(CVSymbol Symbol)
Definition DebugSymbolsSubsection.cpp:31
Error commit(BinaryStreamWriter &Writer) const override
Definition DebugSymbolsSubsection.cpp:23
uint32_t calculateSerializedSize() const override
Definition DebugSymbolsSubsection.cpp:19
CVRecord< SymbolKind > CVSymbol
This is an optimization pass for GlobalISel generic memory operations.