|
LLVM 23.0.0git
|
GlobalData describes a section of data in a GSYM file by its type, file offset, and size. More...
#include "llvm/DebugInfo/GSYM/GlobalData.h"
Public Member Functions | |
| LLVM_ABI void | encode (FileWriter &O) const |
| Encode this GlobalData entry into a FileWriter stream. | |
Static Public Member Functions | |
| static LLVM_ABI llvm::Expected< GlobalData > | decode (GsymDataExtractor &GsymData, uint64_t &Offset) |
| Decode a GlobalData entry from a binary data stream. | |
Public Attributes | |
| GlobalInfoType | Type |
| uint64_t | FileOffset |
| uint64_t | FileSize |
GlobalData describes a section of data in a GSYM file by its type, file offset, and size.
This is used to support 64-bit GSYM files where data sections can be located at arbitrary file offsets.
Definition at line 61 of file GlobalData.h.
|
static |
Decode a GlobalData entry from a binary data stream.
| GsymData | The binary stream to read from. |
| Offset | The offset to start reading from. Updated on success. |
Definition at line 23 of file GlobalData.cpp.
References llvm::createStringError(), FileOffset, FileSize, llvm::DataExtractor::getU32(), llvm::DataExtractor::getU64(), llvm::DataExtractor::isValidOffsetForDataOfSize(), llvm::Offset, and Type.
Referenced by llvm::gsym::GsymReaderV2::dump(), and llvm::gsym::GsymReader::parseGlobalDataEntries().
| void GlobalData::encode | ( | FileWriter & | O | ) | const |
Encode this GlobalData entry into a FileWriter stream.
| O | The binary stream to write the data to. |
Definition at line 17 of file GlobalData.cpp.
References FileOffset, FileSize, and Type.
Referenced by llvm::gsym::GsymCreatorV2::encode().
| uint64_t llvm::gsym::GlobalData::FileOffset |
Definition at line 63 of file GlobalData.h.
Referenced by decode(), llvm::gsym::GsymReaderV2::dump(), encode(), and llvm::gsym::GsymReader::parseGlobalDataEntries().
| uint64_t llvm::gsym::GlobalData::FileSize |
Definition at line 64 of file GlobalData.h.
Referenced by decode(), llvm::gsym::GsymReaderV2::dump(), encode(), and llvm::gsym::GsymReader::parseGlobalDataEntries().
| GlobalInfoType llvm::gsym::GlobalData::Type |
Definition at line 62 of file GlobalData.h.
Referenced by decode(), llvm::gsym::GsymReaderV2::dump(), encode(), and llvm::gsym::GsymReader::parseGlobalDataEntries().