llvm/llvm/tools/llvm-pdbutil/PdbYaml.cpp

//===-- PdbYaml.cpp ------------------------------------------- *- 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 "PdbYaml.h"

#include "llvm/ADT/StringExtras.h"
#include "llvm/DebugInfo/CodeView/CVTypeVisitor.h"
#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
#include "llvm/DebugInfo/PDB/Native/TpiHashing.h"
#include "llvm/DebugInfo/PDB/PDBTypes.h"
#include "llvm/ObjectYAML/CodeViewYAMLDebugSections.h"
#include "llvm/ObjectYAML/CodeViewYAMLTypes.h"

usingnamespacellvm;
usingnamespacellvm::pdb;
usingnamespacellvm::pdb::yaml;
usingnamespacellvm::yaml;

LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::pdb::yaml::NamedStreamMapping)
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::pdb::yaml::PdbDbiModuleInfo)
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::pdb::yaml::StreamBlockList)
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(llvm::pdb::PdbRaw_FeatureSig)

namespace llvm {
namespace yaml {

template <> struct ScalarEnumerationTraits<llvm::pdb::PDB_Machine> {};

template <> struct ScalarEnumerationTraits<llvm::pdb::PdbRaw_DbiVer> {};

template <> struct ScalarEnumerationTraits<llvm::pdb::PdbRaw_ImplVer> {};

template <> struct ScalarEnumerationTraits<llvm::pdb::PdbRaw_TpiVer> {};

template <> struct ScalarEnumerationTraits<llvm::pdb::PdbRaw_FeatureSig> {};
}
}

void MappingTraits<PdbObject>::mapping(IO &IO, PdbObject &Obj) {}

void MappingTraits<MSFHeaders>::mapping(IO &IO, MSFHeaders &Obj) {}

void MappingTraits<msf::SuperBlock>::mapping(IO &IO, msf::SuperBlock &SB) {}

void MappingTraits<StreamBlockList>::mapping(IO &IO, StreamBlockList &SB) {}

void MappingTraits<PdbInfoStream>::mapping(IO &IO, PdbInfoStream &Obj) {}

void MappingTraits<PdbDbiStream>::mapping(IO &IO, PdbDbiStream &Obj) {}

void MappingTraits<PdbTpiStream>::mapping(IO &IO,
                                          pdb::yaml::PdbTpiStream &Obj) {}

void MappingTraits<PdbPublicsStream>::mapping(
    IO &IO, pdb::yaml::PdbPublicsStream &Obj) {}

void MappingTraits<NamedStreamMapping>::mapping(IO &IO,
                                                NamedStreamMapping &Obj) {}

void MappingTraits<PdbModiStream>::mapping(IO &IO, PdbModiStream &Obj) {}

void MappingTraits<PdbDbiModuleInfo>::mapping(IO &IO, PdbDbiModuleInfo &Obj) {}