LLVM: include/llvm/DebugInfo/GSYM/FileWriter.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_DEBUGINFO_GSYM_FILEWRITER_H

10#define LLVM_DEBUGINFO_GSYM_FILEWRITER_H

11

15

16#include <stddef.h>

17#include <stdint.h>

18#include <sys/types.h>

19

20namespace llvm {

22

23namespace gsym {

24

25

26

27

28

29

33

34public:

36 : OS(S), ByteOrder(B) {}

38

39

40

41

43

44

45

46

47

48

50

51

52

53

54

55

57

58

59

60

61

62

64

65

66

67

68

70

71

72

73

74

76

77

78

79

80

82

83

84

85

86

87

88

89

91

92

93

94

95

96

97

98

100

101

102

103

104

105

107

108

109

110

111

113

117

119

120private:

122 void operator=(const FileWriter &rhs) = delete;

123};

124

125}

126}

127

128#endif

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,...

Definition FileWriter.h:30

llvm::raw_pwrite_stream & get_stream()

Definition FileWriter.h:114

LLVM_ABI uint64_t tell()

Return the current offset within the file.

LLVM_ABI void writeULEB(uint64_t Value)

Write the value into the stream encoded using unsigned LEB128 at the current file position.

LLVM_ABI void writeU16(uint16_t Value)

Write a single uint16_t value into the stream at the current file position.

LLVM_ABI void fixup32(uint32_t Value, uint64_t Offset)

Fixup a uint32_t value at the specified offset in the stream.

LLVM_ABI void writeSLEB(int64_t Value)

Write the value into the stream encoded using signed LEB128 at the current file position.

LLVM_ABI void writeU8(uint8_t Value)

Write a single uint8_t value into the stream at the current file position.

LLVM_ABI 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)

Definition FileWriter.h:35

LLVM_ABI void writeU32(uint32_t Value)

Write a single uint32_t value into the stream at the current file position.

LLVM_ABI void writeData(llvm::ArrayRef< uint8_t > Data)

Write an array of uint8_t values into the stream at the current file position.

LLVM_ABI void writeNullTerminated(llvm::StringRef Str)

Write a NULL terminated C string into the stream at the current file position.

llvm::endianness getByteOrder() const

Definition FileWriter.h:118

LLVM_ABI 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.

FunctionAddr VTableAddr uintptr_t uintptr_t Data

This struct is a compact representation of a valid (non-zero power of two) alignment.