//===------ dxcontainer2yaml.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/Object/DXContainer.h" #include "llvm/ObjectYAML/DXContainerYAML.h" #include "llvm/Support/Error.h" #include <algorithm> usingnamespacellvm; usingnamespacellvm::object; static DXContainerYAML::Signature dumpSignature(const DirectX::Signature &Sig) { … } static Expected<DXContainerYAML::Object *> dumpDXContainer(MemoryBufferRef Source) { … } llvm::Error dxcontainer2yaml(llvm::raw_ostream &Out, llvm::MemoryBufferRef Source) { … }