//===- CodeViewYAMLDebugSections.h - CodeView YAMLIO debug sections -------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file defines classes for handling the YAML representation of CodeView // Debug Info. // //===----------------------------------------------------------------------===// #ifndef LLVM_OBJECTYAML_CODEVIEWYAMLDEBUGSECTIONS_H #define LLVM_OBJECTYAML_CODEVIEWYAMLDEBUGSECTIONS_H #include "llvm/DebugInfo/CodeView/CodeView.h" #include "llvm/DebugInfo/CodeView/DebugSubsection.h" #include "llvm/ObjectYAML/YAML.h" namespace llvm { namespace CodeViewYAML { namespace detail { struct C13FragmentBase; } struct SourceLineEntry { uint32_t Offset; uint32_t LineStart; uint32_t EndDelta; bool IsStatement; }; struct SourceColumnEntry { uint16_t StartColumn; uint16_t EndColumn; }; struct SourceLineBlock { StringRef FileName; std::vector Lines; std::vector Columns; }; struct HexFormattedString { std::vector Bytes; }; struct SourceFileChecksumEntry { StringRef FileName; codeview::FileChecksumKind Kind; HexFormattedString ChecksumBytes; }; struct SourceLineInfo { uint32_t RelocOffset; uint32_t RelocSegment; codeview::LineFlags Flags; uint32_t CodeSize; std::vector Blocks; }; struct InlineeSite { uint32_t Inlinee; StringRef FileName; uint32_t SourceLineNum; std::vector ExtraFiles; }; struct InlineeInfo { bool HasExtraFiles; std::vector Sites; }; struct SourceFileInfo { std::vector FileChecksums; std::vector LineFragments; std::vector Inlinees; }; struct C13DebugSection { std::vector Fragments; }; } // namespace CodeViewYAML } // namespace llvm LLVM_YAML_DECLARE_MAPPING_TRAITS(CodeViewYAML::SourceFileInfo) #endif