Go to the documentation of this file.
9 #ifndef LLVM_DEBUGINFO_GSYM_FILEWRITER_H
10 #define LLVM_DEBUGINFO_GSYM_FILEWRITER_H
17 #include <sys/types.h>
20 class raw_pwrite_stream;
34 : OS(
S), ByteOrder(
B) {}
118 void operator=(
const FileWriter &rhs) =
delete;
124 #endif // LLVM_DEBUGINFO_GSYM_FILEWRITER_H
This is an optimization pass for GlobalISel generic memory operations.
FileWriter(llvm::raw_pwrite_stream &S, llvm::support::endianness B)
void writeData(llvm::ArrayRef< uint8_t > Data)
Write an array of uint8_t values into the stream at the current file position.
void alignTo(size_t Align)
Pad with zeroes at the current file position until the current file position matches the specified al...
llvm::raw_pwrite_stream & get_stream()
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
This struct is a compact representation of a valid (non-zero power of two) alignment.
An abstract base class for streams implementations that also support a pwrite operation.
A simplified binary data writer class that doesn't require targets, target definitions,...
void writeU64(uint64_t Value)
Write a single uint64_t value into the stream at the current file position.
void writeU16(uint16_t Value)
Write a single uint16_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 writeSLEB(int64_t Value)
Write the value into the stream encoded using signed LEB128 at the current file position.
StringRef - Represent a constant reference to a string, i.e.
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
void writeULEB(uint64_t Value)
Write the value into the stream encoded using unsigned LEB128 at the current file position.
void fixup32(uint32_t Value, uint64_t Offset)
Fixup a uint32_t value at the specified offset in the stream.
void writeU8(uint8_t Value)
Write a single uint8_t value into the stream at the current file position.
uint64_t tell()
Return the current offset within the file.
LLVM Value Representation.
void writeNullTerminated(llvm::StringRef Str)
Write a NULL terminated C string into the stream at the current file position.