//===- YAML.cpp - YAMLIO utilities for object files -----------------------===// // // 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 // //===----------------------------------------------------------------------===// // // This file defines utility classes for handling the YAML representation of // object files. // //===----------------------------------------------------------------------===// #include "llvm/ObjectYAML/YAML.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/raw_ostream.h" #include <cctype> #include <cstdint> usingnamespacellvm; void yaml::ScalarTraits<yaml::BinaryRef>::output( const yaml::BinaryRef &Val, void *, raw_ostream &Out) { … } StringRef yaml::ScalarTraits<yaml::BinaryRef>::input(StringRef Scalar, void *, yaml::BinaryRef &Val) { … } void yaml::BinaryRef::writeAsBinary(raw_ostream &OS, uint64_t N) const { … } void yaml::BinaryRef::writeAsHex(raw_ostream &OS) const { … }