LLVM: lib/ObjectYAML/ArchiveEmitter.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

12

13using namespace llvm;

15

16namespace llvm {

17namespace yaml {

18

21

23 Doc.Content->writeAsBinary(Out);

24 return true;

25 }

26

28 return true;

29

34 };

35

37 for (auto &P : C.Fields)

38 WriteField(P.second.Value, P.second.MaxLength);

39

40 if (C.Content)

41 C.Content->writeAsBinary(Out);

42 if (C.PaddingByte)

43 Out.write(*C.PaddingByte);

44 }

45

46 return true;

47}

48

49}

50}

This file declares classes for handling the YAML representation of archives.

OptimizedStructLayoutField Field

StringRef - Represent a constant reference to a string, i.e.

constexpr size_t size() const

size - Get the string size.

constexpr const char * data() const

data - Get a pointer to the start of the string (which may not be null terminated).

This class implements an extremely fast bulk output stream that can only output to a stream.

raw_ostream & write(unsigned char C)

@ C

The default llvm calling convention, compatible with C.

llvm::function_ref< void(const Twine &Msg)> ErrorHandler

LLVM_ABI bool yaml2archive(ArchYAML::Archive &Doc, raw_ostream &Out, ErrorHandler EH)

Definition ArchiveEmitter.cpp:19

This is an optimization pass for GlobalISel generic memory operations.

std::optional< yaml::BinaryRef > Content

std::optional< std::vector< Child > > Members

Common declarations for yaml2obj.