Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:21

0001 //===- CodeViewYAMLSymbols.h - CodeView YAMLIO Symbol implementation ------===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // This file defines classes for handling the YAML representation of CodeView
0010 // Debug Info.
0011 //
0012 //===----------------------------------------------------------------------===//
0013 
0014 #ifndef LLVM_OBJECTYAML_CODEVIEWYAMLSYMBOLS_H
0015 #define LLVM_OBJECTYAML_CODEVIEWYAMLSYMBOLS_H
0016 
0017 #include "llvm/DebugInfo/CodeView/CodeView.h"
0018 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
0019 #include "llvm/Support/Error.h"
0020 #include "llvm/Support/YAMLTraits.h"
0021 #include <memory>
0022 
0023 namespace llvm {
0024 namespace CodeViewYAML {
0025 
0026 namespace detail {
0027 
0028 struct SymbolRecordBase;
0029 
0030 } // end namespace detail
0031 
0032 struct SymbolRecord {
0033   std::shared_ptr<detail::SymbolRecordBase> Symbol;
0034 
0035   codeview::CVSymbol
0036   toCodeViewSymbol(BumpPtrAllocator &Allocator,
0037                    codeview::CodeViewContainer Container) const;
0038 
0039   static Expected<SymbolRecord> fromCodeViewSymbol(codeview::CVSymbol Symbol);
0040 };
0041 
0042 } // end namespace CodeViewYAML
0043 } // end namespace llvm
0044 
0045 LLVM_YAML_DECLARE_MAPPING_TRAITS(CodeViewYAML::SymbolRecord)
0046 LLVM_YAML_IS_SEQUENCE_VECTOR(CodeViewYAML::SymbolRecord)
0047 
0048 #endif // LLVM_OBJECTYAML_CODEVIEWYAMLSYMBOLS_H