90 virtual std::shared_ptr<DebugSubsection>
104 YAMLChecksumsSubsection()
107 void map(IO &IO)
override;
108 std::shared_ptr<DebugSubsection>
110 const codeview::StringsAndChecksums &SC)
const override;
111 static Expected<std::shared_ptr<YAMLChecksumsSubsection>>
112 fromCodeViewSubsection(
const DebugStringTableSubsectionRef &Strings,
113 const DebugChecksumsSubsectionRef &FC);
115 std::vector<SourceFileChecksumEntry> Checksums;
121 void map(IO &IO)
override;
122 std::shared_ptr<DebugSubsection>
124 const codeview::StringsAndChecksums &SC)
const override;
125 static Expected<std::shared_ptr<YAMLLinesSubsection>>
126 fromCodeViewSubsection(
const DebugStringTableSubsectionRef &Strings,
127 const DebugChecksumsSubsectionRef &Checksums,
128 const DebugLinesSubsectionRef &Lines);
130 SourceLineInfo Lines;
134 YAMLInlineeLinesSubsection()
137 void map(IO &IO)
override;
138 std::shared_ptr<DebugSubsection>
140 const codeview::StringsAndChecksums &SC)
const override;
141 static Expected<std::shared_ptr<YAMLInlineeLinesSubsection>>
142 fromCodeViewSubsection(
const DebugStringTableSubsectionRef &Strings,
143 const DebugChecksumsSubsectionRef &Checksums,
144 const DebugInlineeLinesSubsectionRef &
Lines);
146 InlineeInfo InlineeLines;
150 YAMLCrossModuleExportsSubsection()
153 void map(IO &IO)
override;
154 std::shared_ptr<DebugSubsection>
156 const codeview::StringsAndChecksums &SC)
const override;
157 static Expected<std::shared_ptr<YAMLCrossModuleExportsSubsection>>
158 fromCodeViewSubsection(
const DebugCrossModuleExportsSubsectionRef &Exports);
160 std::vector<CrossModuleExport> Exports;
164 YAMLCrossModuleImportsSubsection()
167 void map(IO &IO)
override;
168 std::shared_ptr<DebugSubsection>
170 const codeview::StringsAndChecksums &SC)
const override;
171 static Expected<std::shared_ptr<YAMLCrossModuleImportsSubsection>>
172 fromCodeViewSubsection(
const DebugStringTableSubsectionRef &Strings,
173 const DebugCrossModuleImportsSubsectionRef &Imports);
175 std::vector<YAMLCrossModuleImport> Imports;
181 void map(IO &IO)
override;
182 std::shared_ptr<DebugSubsection>
184 const codeview::StringsAndChecksums &SC)
const override;
185 static Expected<std::shared_ptr<YAMLSymbolsSubsection>>
186 fromCodeViewSubsection(
const DebugSymbolsSubsectionRef &Symbols);
188 std::vector<CodeViewYAML::SymbolRecord> Symbols;
192 YAMLStringTableSubsection()
195 void map(IO &IO)
override;
196 std::shared_ptr<DebugSubsection>
198 const codeview::StringsAndChecksums &SC)
const override;
199 static Expected<std::shared_ptr<YAMLStringTableSubsection>>
200 fromCodeViewSubsection(
const DebugStringTableSubsectionRef &Strings);
202 std::vector<StringRef> Strings;
206 YAMLFrameDataSubsection()
209 void map(IO &IO)
override;
210 std::shared_ptr<DebugSubsection>
212 const codeview::StringsAndChecksums &SC)
const override;
213 static Expected<std::shared_ptr<YAMLFrameDataSubsection>>
214 fromCodeViewSubsection(
const DebugStringTableSubsectionRef &Strings,
215 const DebugFrameDataSubsectionRef &Frames);
217 std::vector<YAMLFrameData> Frames;
221 YAMLCoffSymbolRVASubsection()
224 void map(IO &IO)
override;
225 std::shared_ptr<DebugSubsection>
227 const codeview::StringsAndChecksums &SC)
const override;
228 static Expected<std::shared_ptr<YAMLCoffSymbolRVASubsection>>
229 fromCodeViewSubsection(
const DebugSymbolRVASubsectionRef &RVAs);
231 std::vector<uint32_t> RVAs;
251 StringRef Bytes(
reinterpret_cast<const char *
>(
Value.Bytes.data()),
259 Value.Bytes.assign(
H.begin(),
H.end());
317void YAMLChecksumsSubsection::map(
IO &
IO) {
318 IO.
mapTag(
"!FileChecksums",
true);
322void YAMLLinesSubsection::map(IO &IO) {
323 IO.
mapTag(
"!Lines",
true);
332void YAMLInlineeLinesSubsection::map(IO &IO) {
333 IO.
mapTag(
"!InlineeLines",
true);
338void YAMLCrossModuleExportsSubsection::map(IO &IO) {
339 IO.
mapTag(
"!CrossModuleExports",
true);
343void YAMLCrossModuleImportsSubsection::map(IO &IO) {
344 IO.
mapTag(
"!CrossModuleImports",
true);
348void YAMLSymbolsSubsection::map(IO &IO) {
349 IO.
mapTag(
"!Symbols",
true);
353void YAMLStringTableSubsection::map(IO &IO) {
354 IO.
mapTag(
"!StringTable",
true);
358void YAMLFrameDataSubsection::map(IO &IO) {
359 IO.
mapTag(
"!FrameData",
true);
363void YAMLCoffSymbolRVASubsection::map(IO &IO) {
364 IO.
mapTag(
"!COFFSymbolRVAs",
true);
368void MappingTraits<YAMLDebugSubsection>::mapping(
369 IO &IO, YAMLDebugSubsection &Subsection) {
371 if (IO.
mapTag(
"!FileChecksums")) {
372 auto SS = std::make_shared<YAMLChecksumsSubsection>();
374 }
else if (IO.
mapTag(
"!Lines")) {
375 Subsection.
Subsection = std::make_shared<YAMLLinesSubsection>();
376 }
else if (IO.
mapTag(
"!InlineeLines")) {
377 Subsection.
Subsection = std::make_shared<YAMLInlineeLinesSubsection>();
378 }
else if (IO.
mapTag(
"!CrossModuleExports")) {
380 std::make_shared<YAMLCrossModuleExportsSubsection>();
381 }
else if (IO.
mapTag(
"!CrossModuleImports")) {
383 std::make_shared<YAMLCrossModuleImportsSubsection>();
384 }
else if (IO.
mapTag(
"!Symbols")) {
385 Subsection.
Subsection = std::make_shared<YAMLSymbolsSubsection>();
386 }
else if (IO.
mapTag(
"!StringTable")) {
387 Subsection.
Subsection = std::make_shared<YAMLStringTableSubsection>();
388 }
else if (IO.
mapTag(
"!FrameData")) {
389 Subsection.
Subsection = std::make_shared<YAMLFrameDataSubsection>();
390 }
else if (IO.
mapTag(
"!COFFSymbolRVAs")) {
391 Subsection.
Subsection = std::make_shared<YAMLCoffSymbolRVASubsection>();
399std::shared_ptr<DebugSubsection> YAMLChecksumsSubsection::toCodeViewSubsection(
401 const codeview::StringsAndChecksums &SC)
const {
403 auto Result = std::make_shared<DebugChecksumsSubsection>(*SC.
strings());
404 for (
const auto &CS : Checksums) {
405 Result->addChecksum(CS.FileName, CS.Kind, CS.ChecksumBytes.Bytes);
410std::shared_ptr<DebugSubsection> YAMLLinesSubsection::toCodeViewSubsection(
412 const codeview::StringsAndChecksums &SC)
const {
419 for (
const auto &LC :
Lines.Blocks) {
420 Result->createBlock(LC.FileName);
421 if (
Result->hasColumnInfo()) {
422 for (
auto Item :
zip(LC.Lines, LC.Columns)) {
423 auto &
L = std::get<0>(Item);
424 auto &
C = std::get<1>(Item);
425 uint32_t
LE =
L.LineStart +
L.EndDelta;
426 Result->addLineAndColumnInfo(
L.Offset,
427 LineInfo(
L.LineStart, LE,
L.IsStatement),
428 C.StartColumn,
C.EndColumn);
431 for (
const auto &L : LC.Lines) {
432 uint32_t
LE =
L.LineStart +
L.EndDelta;
433 Result->addLineInfo(
L.Offset, LineInfo(
L.LineStart, LE,
L.IsStatement));
440std::shared_ptr<DebugSubsection>
441YAMLInlineeLinesSubsection::toCodeViewSubsection(
443 const codeview::StringsAndChecksums &SC)
const {
445 auto Result = std::make_shared<DebugInlineeLinesSubsection>(
449 Result->addInlineSite(TypeIndex(Site.Inlinee), Site.FileName,
454 for (
auto EF : Site.ExtraFiles) {
461std::shared_ptr<DebugSubsection>
462YAMLCrossModuleExportsSubsection::toCodeViewSubsection(
464 const codeview::StringsAndChecksums &SC)
const {
465 auto Result = std::make_shared<DebugCrossModuleExportsSubsection>();
466 for (
const auto &M : Exports)
467 Result->addMapping(
M.Local,
M.Global);
471std::shared_ptr<DebugSubsection>
472YAMLCrossModuleImportsSubsection::toCodeViewSubsection(
474 const codeview::StringsAndChecksums &SC)
const {
478 std::make_shared<DebugCrossModuleImportsSubsection>(*SC.
strings());
479 for (
const auto &M : Imports) {
480 for (
const auto Id :
M.ImportIds)
481 Result->addImport(
M.ModuleName, Id);
486std::shared_ptr<DebugSubsection> YAMLSymbolsSubsection::toCodeViewSubsection(
488 const codeview::StringsAndChecksums &SC)
const {
489 auto Result = std::make_shared<DebugSymbolsSubsection>();
490 for (
const auto &Sym :
Symbols)
492 Sym.toCodeViewSymbol(
Allocator, CodeViewContainer::ObjectFile));
496std::shared_ptr<DebugSubsection>
497YAMLStringTableSubsection::toCodeViewSubsection(
499 const codeview::StringsAndChecksums &SC)
const {
500 auto Result = std::make_shared<DebugStringTableSubsection>();
501 for (
const auto &Str : this->Strings)
506std::shared_ptr<DebugSubsection> YAMLFrameDataSubsection::toCodeViewSubsection(
508 const codeview::StringsAndChecksums &SC)
const {
511 auto Result = std::make_shared<DebugFrameDataSubsection>(
true);
512 for (
const auto &YF : Frames) {
514 F.CodeSize = YF.CodeSize;
516 F.LocalSize = YF.LocalSize;
517 F.MaxStackSize = YF.MaxStackSize;
518 F.ParamsSize = YF.ParamsSize;
519 F.PrologSize = YF.PrologSize;
520 F.RvaStart = YF.RvaStart;
521 F.SavedRegsSize = YF.SavedRegsSize;
522 F.FrameFunc = SC.
strings()->insert(YF.FrameFunc);
528std::shared_ptr<DebugSubsection>
529YAMLCoffSymbolRVASubsection::toCodeViewSubsection(
531 const codeview::StringsAndChecksums &SC)
const {
532 auto Result = std::make_shared<DebugSymbolRVASubsection>();
533 for (
const auto &RVA : RVAs)
538static Expected<SourceFileChecksumEntry>
543 return ExpectedString.takeError();
546 Result.ChecksumBytes.Bytes = CS.
Checksum;
547 Result.Kind = CS.
Kind;
548 Result.FileName = *ExpectedString;
552static Expected<StringRef>
562Expected<std::shared_ptr<YAMLChecksumsSubsection>>
563YAMLChecksumsSubsection::fromCodeViewSubsection(
564 const DebugStringTableSubsectionRef &Strings,
565 const DebugChecksumsSubsectionRef &FC) {
566 auto Result = std::make_shared<YAMLChecksumsSubsection>();
568 for (
const auto &CS : FC) {
571 return ConvertedCS.takeError();
572 Result->Checksums.push_back(*ConvertedCS);
577Expected<std::shared_ptr<YAMLLinesSubsection>>
578YAMLLinesSubsection::fromCodeViewSubsection(
579 const DebugStringTableSubsectionRef &Strings,
580 const DebugChecksumsSubsectionRef &Checksums,
581 const DebugLinesSubsectionRef &
Lines) {
582 auto Result = std::make_shared<YAMLLinesSubsection>();
584 Result->Lines.RelocOffset =
Lines.header()->RelocOffset;
585 Result->Lines.RelocSegment =
Lines.header()->RelocSegment;
587 for (
const auto &L :
Lines) {
588 SourceLineBlock
Block;
591 return EF.takeError();
592 Block.FileName = *EF;
593 if (
Lines.hasColumnInfo()) {
594 for (
const auto &
C :
L.Columns) {
595 SourceColumnEntry
SCE;
596 SCE.EndColumn =
C.EndColumn;
597 SCE.StartColumn =
C.StartColumn;
601 for (
const auto &LN :
L.LineNumbers) {
603 LineInfo LI(LN.Flags);
608 Block.Lines.push_back(SLE);
615Expected<std::shared_ptr<YAMLInlineeLinesSubsection>>
616YAMLInlineeLinesSubsection::fromCodeViewSubsection(
617 const DebugStringTableSubsectionRef &Strings,
618 const DebugChecksumsSubsectionRef &Checksums,
619 const DebugInlineeLinesSubsectionRef &
Lines) {
620 auto Result = std::make_shared<YAMLInlineeLinesSubsection>();
622 Result->InlineeLines.HasExtraFiles =
Lines.hasExtraFiles();
623 for (
const auto &IL :
Lines) {
625 auto ExpF =
getFileName(Strings, Checksums, IL.Header->FileID);
627 return ExpF.takeError();
629 Site.
Inlinee = IL.Header->Inlinee.getIndex();
631 if (
Lines.hasExtraFiles()) {
632 for (
const auto EF : IL.ExtraFiles) {
635 return ExpF2.takeError();
639 Result->InlineeLines.Sites.push_back(Site);
644Expected<std::shared_ptr<YAMLCrossModuleExportsSubsection>>
645YAMLCrossModuleExportsSubsection::fromCodeViewSubsection(
646 const DebugCrossModuleExportsSubsectionRef &Exports) {
647 auto Result = std::make_shared<YAMLCrossModuleExportsSubsection>();
652Expected<std::shared_ptr<YAMLCrossModuleImportsSubsection>>
653YAMLCrossModuleImportsSubsection::fromCodeViewSubsection(
654 const DebugStringTableSubsectionRef &Strings,
655 const DebugCrossModuleImportsSubsectionRef &Imports) {
656 auto Result = std::make_shared<YAMLCrossModuleImportsSubsection>();
657 for (
const auto &CMI : Imports) {
658 YAMLCrossModuleImport YCMI;
659 auto ExpectedStr = Strings.
getString(CMI.Header->ModuleNameOffset);
661 return ExpectedStr.takeError();
663 YCMI.
ImportIds.assign(CMI.Imports.begin(), CMI.Imports.end());
664 Result->Imports.push_back(YCMI);
669Expected<std::shared_ptr<YAMLSymbolsSubsection>>
670YAMLSymbolsSubsection::fromCodeViewSubsection(
671 const DebugSymbolsSubsectionRef &
Symbols) {
672 auto Result = std::make_shared<YAMLSymbolsSubsection>();
673 for (
const auto &Sym :
Symbols) {
677 cv_error_code::corrupt_record,
678 "Invalid CodeView Symbol Record in SymbolRecord "
679 "subsection of .debug$S while converting to YAML!"),
682 Result->Symbols.push_back(*S);
687Expected<std::shared_ptr<YAMLStringTableSubsection>>
688YAMLStringTableSubsection::fromCodeViewSubsection(
689 const DebugStringTableSubsectionRef &Strings) {
690 auto Result = std::make_shared<YAMLStringTableSubsection>();
691 BinaryStreamReader Reader(Strings.
getBuffer());
694 if (
auto EC = Reader.readCString(S))
695 return std::move(
EC);
697 while (Reader.bytesRemaining() > 0) {
698 if (
auto EC = Reader.readCString(S))
699 return std::move(
EC);
700 Result->Strings.push_back(S);
705Expected<std::shared_ptr<YAMLFrameDataSubsection>>
706YAMLFrameDataSubsection::fromCodeViewSubsection(
707 const DebugStringTableSubsectionRef &Strings,
708 const DebugFrameDataSubsectionRef &Frames) {
709 auto Result = std::make_shared<YAMLFrameDataSubsection>();
710 for (
const auto &
F : Frames) {
725 cv_error_code::no_records,
726 "Could not find string for string id while mapping FrameData!"),
729 Result->Frames.push_back(YF);
734Expected<std::shared_ptr<YAMLCoffSymbolRVASubsection>>
735YAMLCoffSymbolRVASubsection::fromCodeViewSubsection(
736 const DebugSymbolRVASubsectionRef &Section) {
737 auto Result = std::make_shared<YAMLCoffSymbolRVASubsection>();
742Expected<std::vector<std::shared_ptr<DebugSubsection>>>
746 std::vector<std::shared_ptr<DebugSubsection>> Result;
747 if (Subsections.
empty())
748 return std::move(Result);
750 for (
const auto &SS : Subsections) {
751 std::shared_ptr<DebugSubsection> CVS;
752 CVS = SS.Subsection->toCodeViewSubsection(Allocator, SC);
754 Result.push_back(std::move(CVS));
756 return std::move(Result);
762 SubsectionConversionVisitor() =
default;
789Error SubsectionConversionVisitor::visitUnknown(
790 DebugUnknownSubsectionRef &
Unknown) {
794Error SubsectionConversionVisitor::visitLines(
795 DebugLinesSubsectionRef &
Lines,
const StringsAndChecksumsRef &State) {
796 auto Result = YAMLLinesSubsection::fromCodeViewSubsection(
799 return Result.takeError();
804Error SubsectionConversionVisitor::visitFileChecksums(
805 DebugChecksumsSubsectionRef &Checksums,
806 const StringsAndChecksumsRef &State) {
807 auto Result = YAMLChecksumsSubsection::fromCodeViewSubsection(State.
strings(),
810 return Result.takeError();
815Error SubsectionConversionVisitor::visitInlineeLines(
816 DebugInlineeLinesSubsectionRef &Inlinees,
817 const StringsAndChecksumsRef &State) {
818 auto Result = YAMLInlineeLinesSubsection::fromCodeViewSubsection(
821 return Result.takeError();
826Error SubsectionConversionVisitor::visitCrossModuleExports(
827 DebugCrossModuleExportsSubsectionRef &Exports,
828 const StringsAndChecksumsRef &State) {
830 YAMLCrossModuleExportsSubsection::fromCodeViewSubsection(Exports);
832 return Result.takeError();
837Error SubsectionConversionVisitor::visitCrossModuleImports(
838 DebugCrossModuleImportsSubsectionRef &Imports,
839 const StringsAndChecksumsRef &State) {
840 auto Result = YAMLCrossModuleImportsSubsection::fromCodeViewSubsection(
843 return Result.takeError();
848Error SubsectionConversionVisitor::visitStringTable(
849 DebugStringTableSubsectionRef &Strings,
850 const StringsAndChecksumsRef &State) {
851 auto Result = YAMLStringTableSubsection::fromCodeViewSubsection(Strings);
853 return Result.takeError();
858Error SubsectionConversionVisitor::visitSymbols(
859 DebugSymbolsSubsectionRef &
Symbols,
const StringsAndChecksumsRef &State) {
860 auto Result = YAMLSymbolsSubsection::fromCodeViewSubsection(
Symbols);
862 return Result.takeError();
867Error SubsectionConversionVisitor::visitFrameData(
868 DebugFrameDataSubsectionRef &Frames,
const StringsAndChecksumsRef &State) {
870 YAMLFrameDataSubsection::fromCodeViewSubsection(State.
strings(), Frames);
872 return Result.takeError();
877Error SubsectionConversionVisitor::visitCOFFSymbolRVAs(
878 DebugSymbolRVASubsectionRef &RVAs,
const StringsAndChecksumsRef &State) {
879 auto Result = YAMLCoffSymbolRVASubsection::fromCodeViewSubsection(RVAs);
881 return Result.takeError();
886Expected<YAMLDebugSubsection>
889 SubsectionConversionVisitor V;
891 return std::move(
EC);
896std::vector<YAMLDebugSubsection>
909 std::vector<YAMLDebugSubsection> Result;
911 for (
const auto &SS : Subsections) {
913 Result.push_back(YamlSS);
931 for (
const auto &SS : Sections) {
935 auto Result = SS.Subsection->toCodeViewSubsection(Allocator, SC);
937 std::static_pointer_cast<DebugStringTableSubsection>(Result));
943 for (
const auto &SS : Sections) {
947 auto Result = SS.Subsection->toCodeViewSubsection(Allocator, SC);
949 std::static_pointer_cast<DebugChecksumsSubsection>(Result));
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file defines the BumpPtrAllocator interface.
static Expected< StringRef > getFileName(const DebugStringTableSubsectionRef &Strings, const DebugChecksumsSubsectionRef &Checksums, uint32_t FileID)
static Expected< SourceFileChecksumEntry > convertOneChecksum(const DebugStringTableSubsectionRef &Strings, const FileChecksumEntry &CS)
#define LLVM_YAML_DECLARE_BITSET_TRAITS(Type)
#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)
Utility for declaring that a std::vector of a particular type should be considered a YAML sequence.
#define LLVM_YAML_DECLARE_SCALAR_TRAITS(Type, MustQuote)
#define LLVM_YAML_DECLARE_MAPPING_TRAITS(Type)
#define LLVM_YAML_DECLARE_ENUM_TRAITS(Type)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
bool empty() const
empty - Check if the array is empty.
Provides read only access to a subclass of BinaryStream.
Error readInteger(T &Dest)
Read an integer of the specified endianness into Dest and update the stream's offset.
uint64_t bytesRemaining() const
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Helper for check-and-exit error handling.
StringRef - Represent a constant reference to a string, i.e.
constexpr bool empty() const
empty - Check if the string is empty.
LLVM Value Representation.
Iterator at(uint32_t Offset) const
given an offset into the array's underlying stream, return an iterator to the record at that offset.
const FileChecksumArray & getArray() const
Represents a read-only view of a CodeView string table.
BinaryStreamRef getBuffer() const
LLVM_ABI Expected< StringRef > getString(uint32_t Offset) const
const DebugStringTableSubsectionRef & strings() const
const DebugChecksumsSubsectionRef & checksums() const
void setStrings(const StringsPtr &SP)
bool hasChecksums() const
const StringsPtr & strings() const
void setChecksums(const ChecksumsPtr &CP)
const ChecksumsPtr & checksums() const
This class implements an extremely fast bulk output stream that can only output to a stream.
void mapOptional(const char *Key, T &Val)
void bitSetCase(T &Val, const char *Str, const T ConstVal)
virtual bool outputting() const =0
virtual bool mapTag(StringRef Tag, bool Default=false)=0
void mapRequired(const char *Key, T &Val)
void enumFallback(T &Val)
void enumCase(T &Val, const char *Str, const T ConstVal)
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
@ C
The default llvm calling convention, compatible with C.
LLVM_ABI void initializeStringsAndChecksums(ArrayRef< YAMLDebugSubsection > Sections, codeview::StringsAndChecksums &SC)
LLVM_ABI Expected< std::vector< std::shared_ptr< codeview::DebugSubsection > > > toCodeViewSubsectionList(BumpPtrAllocator &Allocator, ArrayRef< YAMLDebugSubsection > Subsections, const codeview::StringsAndChecksums &SC)
LLVM_ABI std::vector< YAMLDebugSubsection > fromDebugS(ArrayRef< uint8_t > Data, const codeview::StringsAndChecksumsRef &SC)
Error visitDebugSubsection(const DebugSubsectionRecord &R, DebugSubsectionVisitor &V, const StringsAndChecksumsRef &State)
VarStreamArray< DebugSubsectionRecord > DebugSubsectionArray
This is an optimization pass for GlobalISel generic memory operations.
detail::zippy< detail::zip_shortest, T, U, Args... > zip(T &&t, U &&u, Args &&...args)
zip iterator for two or more iteratable types.
std::string fromHex(StringRef Input)
Convert hexadecimal string Input to its binary representation. The return string is half the size of ...
void append_range(Container &C, Range &&R)
Wrapper function to append range R to container C.
Error joinErrors(Error E1, Error E2)
Concatenate errors.
BumpPtrAllocatorImpl BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.
Error make_error(ArgTs &&... Args)
Make a Error instance representing failure using the given error info type.
FunctionAddr VTableAddr uintptr_t uintptr_t Data
void toHex(ArrayRef< uint8_t > Input, bool LowerCase, SmallVectorImpl< char > &Output)
Convert buffer Input to its hexadecimal representation. The returned string is double the size of Inp...
@ SCE
Tune debug info for SCE targets (e.g. PS4).
std::vector< StringRef > ExtraFiles
HexFormattedString ChecksumBytes
codeview::FileChecksumKind Kind
std::vector< SourceLineEntry > Lines
std::vector< SourceColumnEntry > Columns
static LLVM_ABI Expected< SymbolRecord > fromCodeViewSymbol(codeview::CVSymbol Symbol)
std::vector< uint32_t > ImportIds
std::shared_ptr< detail::YAMLSubsectionBase > Subsection
static LLVM_ABI Expected< YAMLDebugSubsection > fromCodeViewSubection(const codeview::StringsAndChecksumsRef &SC, const codeview::DebugSubsectionRecord &SS)
virtual void map(IO &IO)=0
virtual ~YAMLSubsectionBase()=default
YAMLSubsectionBase(DebugSubsectionKind Kind)
virtual std::shared_ptr< DebugSubsection > toCodeViewSubsection(BumpPtrAllocator &Allocator, const codeview::StringsAndChecksums &SC) const =0
support::ulittle32_t Local
support::ulittle32_t Global
ArrayRef< uint8_t > Checksum
This class should be specialized by any type that needs to be converted to/from a YAML mapping.
This class should be specialized by any integer type that is a union of bit values and the YAML repre...
This class should be specialized by any integral type that converts to/from a YAML scalar where there...
This class should be specialized by type that requires custom conversion to/from a yaml scalar.