9#ifndef LLVM_DEBUGINFO_GSYM_FILEWRITER_H
10#define LLVM_DEBUGINFO_GSYM_FILEWRITER_H
20class raw_pwrite_stream;
35 :
OS(S), ByteOrder(
B) {}
121 void operator=(
const FileWriter &rhs) =
delete;
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
StringRef - Represent a constant reference to a string, i.e.
LLVM Value Representation.
A simplified binary data writer class that doesn't require targets, target definitions,...
llvm::raw_pwrite_stream & get_stream()
uint64_t tell()
Return the current offset within the file.
void writeULEB(uint64_t Value)
Write the value into the stream encoded using unsigned LEB128 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 fixup32(uint32_t Value, uint64_t Offset)
Fixup a uint32_t value at the specified offset in the stream.
void writeSLEB(int64_t Value)
Write the value into the stream encoded using signed LEB128 at the current file position.
void writeU8(uint8_t Value)
Write a single uint8_t value 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...
FileWriter(llvm::raw_pwrite_stream &S, llvm::endianness B)
void writeU32(uint32_t Value)
Write a single uint32_t value into the stream at the current file position.
void writeData(llvm::ArrayRef< uint8_t > Data)
Write an array of uint8_t values into the stream at the current file position.
void writeNullTerminated(llvm::StringRef Str)
Write a NULL terminated C string into the stream at the current file position.
llvm::endianness getByteOrder() const
void writeU64(uint64_t Value)
Write a single uint64_t value into the stream at the current file position.
An abstract base class for streams implementations that also support a pwrite operation.
This is an optimization pass for GlobalISel generic memory operations.
This struct is a compact representation of a valid (non-zero power of two) alignment.