15 #define HEX8(v) llvm::format_hex(v, 4) 16 #define HEX16(v) llvm::format_hex(v, 6) 17 #define HEX32(v) llvm::format_hex(v, 10) 18 #define HEX64(v) llvm::format_hex(v, 18) 44 "invalid GSYM magic 0x%8.8x",
Magic);
47 "unsupported GSYM version %u",
Version);
55 "invalid address offset size %u",
69 "not enough data for a gsym::Header");
81 return std::move(Err);
This class represents lattice values for constants.
void writeU8(uint8_t Value)
Write a single uint8_t value into the stream at the current file position.
void writeU32(uint32_t Value)
Write a single uint32_t value into the stream at the current file position.
void writeU64(uint64_t Value)
Write a single uint64_t value into the stream at the current file position.
Tagged union holding either a T or a Error.
void writeData(llvm::ArrayRef< uint8_t > Data)
Write an array of uint8_t values into the stream at the current file position.
A simplified binary data writer class that doesn't require targets, target definitions, architectures, or require any other optional compile time libraries to be enabled via the build process.
bool operator==(const FunctionInfo &LHS, const FunctionInfo &RHS)
static ErrorSuccess success()
Create a success value.
std::pair< llvm::MachO::Target, std::string > UUID
constexpr size_t GSYM_MAX_UUID_SIZE
Merge contiguous icmps into a memcmp
FormattedNumber format_hex_no_prefix(uint64_t N, unsigned Width, bool Upper=false)
format_hex_no_prefix - Output N as a fixed width hexadecimal.
void writeU16(uint16_t Value)
Write a single uint16_t value into the stream at the current file position.
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
constexpr uint32_t GSYM_MAGIC
raw_ostream & operator<<(raw_ostream &OS, const FunctionInfo &R)
constexpr uint32_t GSYM_VERSION
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.