#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 {
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) { … }
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 llvm {
namespace yaml {
bool yaml2goff(llvm::GOFFYAML::Object &Doc, raw_ostream &Out,
ErrorHandler ErrHandler) { … }
}
}