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 // #ifndef LLVM_DEBUGINFO_GSYM_FILEWRITER_H 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 writeULEB(uint64_t Value)
Write the value into the stream encoded using unsigned LEB128 at the current file position...
void writeNullTerminated(llvm::StringRef Str)
Write a NULL terminated C string 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...
void fixup32(uint32_t Value, uint64_t Offset)
Fixup a uint32_t value at the specified offset in the stream.
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.
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
void writeData(llvm::ArrayRef< uint8_t > Data)
Write an array of uint8_t values 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.
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.
FileWriter(llvm::raw_pwrite_stream &S, llvm::support::endianness B)
This struct is a compact representation of a valid (non-zero power of two) alignment.
uint64_t tell()
Return the current offset within the file.
llvm::raw_pwrite_stream & get_stream()
void writeU16(uint16_t Value)
Write a single uint16_t value into the stream at the current file position.
An abstract base class for streams implementations that also support a pwrite operation.
LLVM Value Representation.
StringRef - Represent a constant reference to a string, i.e.