LLVM 22.0.0git
|
A wrapper class to abstract writer stream with support of bytes back patching. More...
#include "llvm/CGData/CodeGenDataWriter.h"
Public Member Functions | |
CGDataOStream (raw_fd_ostream &FD) | |
CGDataOStream (raw_string_ostream &STR) | |
CGDataOStream (raw_svector_ostream &SVEC) | |
uint64_t | tell () |
void | write (uint64_t V) |
void | write32 (uint32_t V) |
void | write8 (uint8_t V) |
LLVM_ABI void | patch (ArrayRef< CGDataPatchItem > P) |
Public Attributes | |
OStreamKind | Kind |
raw_ostream & | OS |
support::endian::Writer | LE |
A wrapper class to abstract writer stream with support of bytes back patching.
Definition at line 28 of file CodeGenDataWriter.h.
|
inline |
Definition at line 36 of file CodeGenDataWriter.h.
|
inline |
Definition at line 38 of file CodeGenDataWriter.h.
References string.
|
inline |
Definition at line 40 of file CodeGenDataWriter.h.
void CGDataOStream::patch | ( | ArrayRef< CGDataPatchItem > | P | ) |
Definition at line 19 of file CodeGenDataWriter.cpp.
References llvm::Data, I, Kind, OS, P, llvm::raw_pwrite_stream::pwrite(), llvm::raw_fd_ostream::seek(), llvm::raw_string_ostream::str(), llvm::raw_ostream::tell(), and write().
Referenced by llvm::GlobalMergeFunc::emitFunctionMap().
|
inline |
Definition at line 44 of file CodeGenDataWriter.h.
References OS, and llvm::raw_ostream::tell().
|
inline |
Definition at line 45 of file CodeGenDataWriter.h.
References LE, and llvm::support::endian::Writer::write().
Referenced by patch().
|
inline |
Definition at line 46 of file CodeGenDataWriter.h.
References LE, and llvm::support::endian::Writer::write().
|
inline |
Definition at line 47 of file CodeGenDataWriter.h.
References LE, and llvm::support::endian::Writer::write().
OStreamKind llvm::CGDataOStream::Kind |
Definition at line 54 of file CodeGenDataWriter.h.
Referenced by patch().
support::endian::Writer llvm::CGDataOStream::LE |
Definition at line 56 of file CodeGenDataWriter.h.
raw_ostream& llvm::CGDataOStream::OS |
Definition at line 55 of file CodeGenDataWriter.h.