llvm/llvm/lib/ObjectYAML/GOFFEmitter.cpp

//===- yaml2goff - Convert YAML to a GOFF object file ---------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// The GOFF component of yaml2obj.
///
//===----------------------------------------------------------------------===//

#include "llvm/ADT/IndexedMap.h"
#include "llvm/ObjectYAML/ObjectYAML.h"
#include "llvm/ObjectYAML/yaml2obj.h"
#include "llvm/Support/ConvertEBCDIC.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/raw_ostream.h"

usingnamespacellvm;

namespace {

// Common flag values on records.
enum {};

template <typename ValueType> struct BinaryBeImpl {};

template <typename ValueType>
raw_ostream &operator<<(raw_ostream &OS, const BinaryBeImpl<ValueType> &BBE) {}

template <typename ValueType> BinaryBeImpl<ValueType> binaryBe(ValueType V) {}

struct ZerosImpl {};

raw_ostream &operator<<(raw_ostream &OS, const ZerosImpl &Z) {}

ZerosImpl zeros(const size_t NumBytes) {}

// The GOFFOstream is responsible to write the data into the fixed physical
// records of the format. A user of this class announces the start of a new
// logical record and the size of its payload. While writing the payload, the
// physical records are created for the data. Possible fill bytes at the end of
// a physical record are written automatically.
class GOFFOstream : public raw_ostream {};

class GOFFState {};

void GOFFState::writeHeader(GOFFYAML::FileHeader &FileHdr) {}

void GOFFState::writeEnd() {}

bool GOFFState::writeObject() {}

bool GOFFState::writeGOFF(raw_ostream &OS, GOFFYAML::Object &Doc,
                          yaml::ErrorHandler ErrHandler) {}
} // namespace

namespace llvm {
namespace yaml {

bool yaml2goff(llvm::GOFFYAML::Object &Doc, raw_ostream &Out,
               ErrorHandler ErrHandler) {}

} // namespace yaml
} // namespace llvm