LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::CGDataOStream Class Reference

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)
 
uint64_t tell ()
 
void write (uint64_t V)
 
void write32 (uint32_t V)
 
void write8 (uint8_t V)
 
void patch (ArrayRef< CGDataPatchItem > P)
 

Public Attributes

bool IsFDOStream
 
raw_ostreamOS
 
support::endian::Writer LE
 

Detailed Description

A wrapper class to abstract writer stream with support of bytes back patching.

Definition at line 32 of file CodeGenDataWriter.h.

Constructor & Destructor Documentation

◆ CGDataOStream() [1/2]

llvm::CGDataOStream::CGDataOStream ( raw_fd_ostream FD)
inline

Definition at line 34 of file CodeGenDataWriter.h.

◆ CGDataOStream() [2/2]

llvm::CGDataOStream::CGDataOStream ( raw_string_ostream STR)
inline

Definition at line 36 of file CodeGenDataWriter.h.

Member Function Documentation

◆ patch()

void CGDataOStream::patch ( ArrayRef< CGDataPatchItem P)

◆ tell()

uint64_t llvm::CGDataOStream::tell ( )
inline

Definition at line 39 of file CodeGenDataWriter.h.

References OS, and llvm::raw_ostream::tell().

◆ write()

void llvm::CGDataOStream::write ( uint64_t  V)
inline

Definition at line 40 of file CodeGenDataWriter.h.

References LE, and llvm::support::endian::Writer::write().

Referenced by patch().

◆ write32()

void llvm::CGDataOStream::write32 ( uint32_t  V)
inline

Definition at line 41 of file CodeGenDataWriter.h.

References LE, and llvm::support::endian::Writer::write().

◆ write8()

void llvm::CGDataOStream::write8 ( uint8_t  V)
inline

Definition at line 42 of file CodeGenDataWriter.h.

References LE, and llvm::support::endian::Writer::write().

Member Data Documentation

◆ IsFDOStream

bool llvm::CGDataOStream::IsFDOStream

Definition at line 51 of file CodeGenDataWriter.h.

Referenced by patch().

◆ LE

support::endian::Writer llvm::CGDataOStream::LE

Definition at line 53 of file CodeGenDataWriter.h.

Referenced by write(), write32(), and write8().

◆ OS

raw_ostream& llvm::CGDataOStream::OS

Definition at line 52 of file CodeGenDataWriter.h.

Referenced by patch(), and tell().


The documentation for this class was generated from the following files: