LLVM 20.0.0git
|
#include "llvm/DebugInfo/GSYM/CallSiteInfo.h"
Public Types | |
enum | Flags : uint8_t { None = 0 , InternalCall = 1 << 0 , ExternalCall = 1 << 1 , LLVM_MARK_AS_BITMASK_ENUM =( ExternalCall) } |
Public Member Functions | |
llvm::Error | encode (FileWriter &O) const |
Encode this CallSiteInfo object into a FileWriter stream. | |
Static Public Member Functions | |
static llvm::Expected< CallSiteInfo > | decode (DataExtractor &Data, uint64_t &Offset) |
Decode a CallSiteInfo object from a binary data stream. | |
Public Attributes | |
uint64_t | ReturnOffset = 0 |
The return offset of the call site - relative to the function start. | |
std::vector< uint32_t > | MatchRegex |
Offsets into the string table for function names regex patterns. | |
uint8_t | Flags = CallSiteInfo::Flags::None |
Bitwise OR of CallSiteInfo::Flags values. | |
Definition at line 30 of file CallSiteInfo.h.
Enumerator | |
---|---|
None | |
InternalCall | |
ExternalCall | |
LLVM_MARK_AS_BITMASK_ENUM |
Definition at line 31 of file CallSiteInfo.h.
|
static |
Decode a CallSiteInfo object from a binary data stream.
Data | The binary stream to read the data from. |
Offset | The current offset within the data stream. |
Definition at line 36 of file CallSiteInfo.cpp.
References llvm::createStringError(), llvm::Data, MatchRegex, llvm::Offset, and ReturnOffset.
Referenced by llvm::gsym::CallSiteInfoCollection::decode().
Error CallSiteInfo::encode | ( | FileWriter & | O | ) | const |
Encode this CallSiteInfo object into a FileWriter stream.
O | The binary stream to write the data to. |
Definition at line 27 of file CallSiteInfo.cpp.
References MatchRegex, ReturnOffset, and llvm::Error::success().
Bitwise OR of CallSiteInfo::Flags values.
Definition at line 50 of file CallSiteInfo.h.
std::vector<uint32_t> llvm::gsym::CallSiteInfo::MatchRegex |
Offsets into the string table for function names regex patterns.
Definition at line 47 of file CallSiteInfo.h.
Referenced by decode(), llvm::gsym::GsymReader::dump(), encode(), and llvm::gsym::operator<<().
uint64_t llvm::gsym::CallSiteInfo::ReturnOffset = 0 |
The return offset of the call site - relative to the function start.
Definition at line 44 of file CallSiteInfo.h.
Referenced by decode(), llvm::gsym::GsymReader::dump(), encode(), and llvm::gsym::operator<<().