//===------ offload2yaml.cpp - obj2yaml conversion tool ---*- C++ -------*-===// // // 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 // //===----------------------------------------------------------------------===// #include "obj2yaml.h" #include "llvm/BinaryFormat/Magic.h" #include "llvm/Object/OffloadBinary.h" #include "llvm/ObjectYAML/OffloadYAML.h" #include "llvm/Support/StringSaver.h" usingnamespacellvm; namespace { void populateYAML(OffloadYAML::Binary &YAMLBinary, object::OffloadBinary &OB, UniqueStringSaver Saver) { … } Expected<OffloadYAML::Binary *> dump(MemoryBufferRef Source, UniqueStringSaver Saver) { … } } // namespace Error offload2yaml(raw_ostream &Out, MemoryBufferRef Source) { … }