LLVM 22.0.0git
ELFYAML.h
Go to the documentation of this file.
1//===- ELFYAML.h - ELF YAMLIO implementation --------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8///
9/// \file
10/// This file declares classes for handling the YAML representation
11/// of ELF.
12///
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_OBJECTYAML_ELFYAML_H
16#define LLVM_OBJECTYAML_ELFYAML_H
17
18#include "llvm/ADT/StringRef.h"
24#include <cstdint>
25#include <memory>
26#include <optional>
27#include <vector>
28
29namespace llvm {
30namespace ELFYAML {
31
33std::string appendUniqueSuffix(StringRef Name, const Twine& Msg);
34
35// These types are invariant across 32/64-bit ELF, so for simplicity just
36// directly give them their exact sizes. We don't need to worry about
37// endianness because these are just the types in the YAMLIO structures,
38// and are appropriately converted to the necessary endianness when
39// reading/generating binary object files.
40// The naming of these types is intended to be ELF_PREFIX, where PREFIX is
41// the common prefix of the respective constants. E.g. ELF_EM corresponds
42// to the `e_machine` constants, like `EM_X86_64`.
43// In the future, these would probably be better suited by C++11 enum
44// class's with appropriate fixed underlying type.
51// Just use 64, since it can hold 32-bit values too.
53// Just use 64, since it can hold 32-bit values too.
59// Just use 64, since it can hold 32-bit values too.
65
70LLVM_YAML_STRONG_TYPEDEF(uint32_t, MIPS_AFL_FLAGS1)
72
74LLVM_YAML_STRONG_TYPEDEF(int64_t, YAMLIntUInt)
75
76template <class ELFT>
77unsigned getDefaultShEntSize(unsigned EMachine, ELF_SHT SecType,
78 StringRef SecName) {
79 if (EMachine == ELF::EM_MIPS && SecType == ELF::SHT_MIPS_ABIFLAGS)
81
82 switch (SecType) {
83 case ELF::SHT_SYMTAB:
84 case ELF::SHT_DYNSYM:
85 return sizeof(typename ELFT::Sym);
86 case ELF::SHT_GROUP:
87 return sizeof(typename ELFT::Word);
88 case ELF::SHT_REL:
89 return sizeof(typename ELFT::Rel);
90 case ELF::SHT_RELA:
91 return sizeof(typename ELFT::Rela);
92 case ELF::SHT_RELR:
93 return sizeof(typename ELFT::Relr);
95 return sizeof(typename ELFT::Dyn);
96 case ELF::SHT_HASH:
97 return sizeof(typename ELFT::Word);
99 return sizeof(typename ELFT::Word);
101 return sizeof(typename ELFT::Half);
104 default:
105 if (SecName == ".debug_str")
106 return 1;
107 return 0;
108 }
109}
110
111// For now, hardcode 64 bits everywhere that 32 or 64 would be needed
112// since 64-bit can hold 32-bit values too.
114 ELF_ELFCLASS Class;
115 ELF_ELFDATA Data;
116 ELF_ELFOSABI OSABI;
117 llvm::yaml::Hex8 ABIVersion;
118 ELF_ET Type;
119 std::optional<ELF_EM> Machine;
120 std::optional<ELF_EF> Flags;
121 llvm::yaml::Hex64 Entry;
122 std::optional<StringRef> SectionHeaderStringTable;
123
124 std::optional<llvm::yaml::Hex64> EPhOff;
125 std::optional<llvm::yaml::Hex16> EPhEntSize;
126 std::optional<llvm::yaml::Hex16> EPhNum;
127 std::optional<llvm::yaml::Hex16> EShEntSize;
128 std::optional<llvm::yaml::Hex64> EShOff;
129 std::optional<llvm::yaml::Hex16> EShNum;
130 std::optional<llvm::yaml::Hex16> EShStrNdx;
131};
132
135};
136
137struct Symbol {
139 ELF_STT Type;
140 std::optional<StringRef> Section;
141 std::optional<ELF_SHN> Index;
142 ELF_STB Binding;
143 std::optional<llvm::yaml::Hex64> Value;
144 std::optional<llvm::yaml::Hex64> Size;
145 std::optional<uint8_t> Other;
146
147 std::optional<uint32_t> StName;
148};
149
152};
153
155 ELF_DYNTAG Tag;
156 llvm::yaml::Hex64 Val;
157};
158
160 struct BBEntry {
162 llvm::yaml::Hex64 AddressOffset;
163 llvm::yaml::Hex64 Size;
164 llvm::yaml::Hex64 Metadata;
165 std::optional<std::vector<llvm::yaml::Hex64>> CallsiteEndOffsets;
166 };
168 llvm::yaml::Hex8 Feature;
169
171 llvm::yaml::Hex64 BaseAddress;
172 std::optional<uint64_t> NumBlocks;
173 std::optional<std::vector<BBEntry>> BBEntries;
174 };
175
176 std::optional<uint64_t> NumBBRanges;
177 std::optional<std::vector<BBRangeEntry>> BBRanges;
178
179 llvm::yaml::Hex64 getFunctionAddress() const {
180 if (!BBRanges || BBRanges->empty())
181 return 0;
182 return BBRanges->front().BaseAddress;
183 }
184
185 // Returns if any BB entries have non-empty callsite offsets.
187 if (!BBRanges)
188 return false;
190 if (!BBR.BBEntries)
191 continue;
192 for (const ELFYAML::BBAddrMapEntry::BBEntry &BBE : *BBR.BBEntries)
193 if (BBE.CallsiteEndOffsets && !BBE.CallsiteEndOffsets->empty())
194 return true;
195 }
196 return false;
197 }
198};
199
201 struct PGOBBEntry {
204 llvm::yaml::Hex32 BrProb;
205 };
206 std::optional<uint64_t> BBFreq;
207 std::optional<std::vector<SuccessorEntry>> Successors;
208 };
209 std::optional<uint64_t> FuncEntryCount;
210 std::optional<std::vector<PGOBBEntry>> PGOBBEntries;
211};
212
214 llvm::yaml::Hex64 Address;
215 llvm::yaml::Hex64 Size;
216};
217
218struct NoteEntry {
221 ELF_NT Type;
222};
223
224struct Chunk {
225 enum class ChunkKind {
226 Dynamic,
227 Group,
230 Relr,
231 NoBits,
232 Note,
233 Hash,
234 GnuHash,
235 Verdef,
236 Verneed,
239 Symver,
242 Addrsig,
246 BBAddrMap,
247
248 // Special chunks.
252 };
253
256 std::optional<llvm::yaml::Hex64> Offset;
257
258 // Usually chunks are not created implicitly, but rather loaded from YAML.
259 // This flag is used to signal whether this is the case or not.
261
262 Chunk(ChunkKind K, bool Implicit) : Kind(K), IsImplicit(Implicit) {}
263 virtual ~Chunk();
264};
265
266struct Section : public Chunk {
267 ELF_SHT Type;
268 std::optional<ELF_SHF> Flags;
269 std::optional<llvm::yaml::Hex64> Address;
270 std::optional<StringRef> Link;
271 llvm::yaml::Hex64 AddressAlign;
272 std::optional<llvm::yaml::Hex64> EntSize;
273
274 std::optional<yaml::BinaryRef> Content;
275 std::optional<llvm::yaml::Hex64> Size;
276
277 // Holds the original section index.
279
281
282 static bool classof(const Chunk *S) {
284 }
285
286 // Some derived sections might have their own special entries. This method
287 // returns a vector of <entry name, is used> pairs. It is used for section
288 // validation.
289 virtual std::vector<std::pair<StringRef, bool>> getEntries() const {
290 return {};
291 };
292
293 // The following members are used to override section fields which is
294 // useful for creating invalid objects.
295
296 // This can be used to override the sh_addralign field.
297 std::optional<llvm::yaml::Hex64> ShAddrAlign;
298
299 // This can be used to override the offset stored in the sh_name field.
300 // It does not affect the name stored in the string table.
301 std::optional<llvm::yaml::Hex64> ShName;
302
303 // This can be used to override the sh_offset field. It does not place the
304 // section data at the offset specified.
305 std::optional<llvm::yaml::Hex64> ShOffset;
306
307 // This can be used to override the sh_size field. It does not affect the
308 // content written.
309 std::optional<llvm::yaml::Hex64> ShSize;
310
311 // This can be used to override the sh_flags field.
312 std::optional<llvm::yaml::Hex64> ShFlags;
313
314 // This can be used to override the sh_type field. It is useful when we
315 // want to use specific YAML keys for a section of a particular type to
316 // describe the content, but still want to have a different final type
317 // for the section.
318 std::optional<ELF_SHT> ShType;
319};
320
321// Fill is a block of data which is placed outside of sections. It is
322// not present in the sections header table, but it might affect the output file
323// size and program headers produced.
324struct Fill : Chunk {
325 std::optional<yaml::BinaryRef> Pattern;
326 llvm::yaml::Hex64 Size;
327
328 Fill() : Chunk(ChunkKind::Fill, /*Implicit=*/false) {}
329
330 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Fill; }
331};
332
336
337 static bool classof(const Chunk *S) {
339 }
340
341 std::optional<std::vector<SectionHeader>> Sections;
342 std::optional<std::vector<SectionHeader>> Excluded;
343 std::optional<bool> NoHeaders;
344
345 size_t getNumHeaders(size_t SectionsNum) const {
346 if (IsImplicit || isDefault())
347 return SectionsNum;
348 if (NoHeaders)
349 return (*NoHeaders) ? 0 : SectionsNum;
350 return (Sections ? Sections->size() : 0) + /*Null section*/ 1;
351 }
352
353 bool isDefault() const { return !Sections && !Excluded && !NoHeaders; }
354
355 static constexpr StringRef TypeStr = "SectionHeaderTable";
356};
357
359 std::optional<std::vector<BBAddrMapEntry>> Entries;
360 std::optional<std::vector<PGOAnalysisMapEntry>> PGOAnalyses;
361
363
364 std::vector<std::pair<StringRef, bool>> getEntries() const override {
365 return {{"Entries", Entries.has_value()}};
366 };
367
368 static bool classof(const Chunk *S) {
369 return S->Kind == ChunkKind::BBAddrMap;
370 }
371};
372
374 std::optional<std::vector<StackSizeEntry>> Entries;
375
377
378 std::vector<std::pair<StringRef, bool>> getEntries() const override {
379 return {{"Entries", Entries.has_value()}};
380 };
381
382 static bool classof(const Chunk *S) {
383 return S->Kind == ChunkKind::StackSizes;
384 }
385
387 return Name == ".stack_sizes";
388 }
389};
390
392 std::optional<std::vector<DynamicEntry>> Entries;
393
395
396 std::vector<std::pair<StringRef, bool>> getEntries() const override {
397 return {{"Entries", Entries.has_value()}};
398 };
399
400 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Dynamic; }
401};
402
404 std::optional<llvm::yaml::Hex64> Info;
405
407
408 static bool classof(const Chunk *S) {
409 return S->Kind == ChunkKind::RawContent;
410 }
411
412 // Is used when a content is read as an array of bytes.
413 std::optional<std::vector<uint8_t>> ContentBuf;
414};
415
418
419 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::NoBits; }
420};
421
423 std::optional<std::vector<ELFYAML::NoteEntry>> Notes;
424
426
427 std::vector<std::pair<StringRef, bool>> getEntries() const override {
428 return {{"Notes", Notes.has_value()}};
429 };
430
431 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Note; }
432};
433
435 std::optional<std::vector<uint32_t>> Bucket;
436 std::optional<std::vector<uint32_t>> Chain;
437
438 std::vector<std::pair<StringRef, bool>> getEntries() const override {
439 return {{"Bucket", Bucket.has_value()}, {"Chain", Chain.has_value()}};
440 };
441
442 // The following members are used to override section fields.
443 // This is useful for creating invalid objects.
444 std::optional<llvm::yaml::Hex64> NBucket;
445 std::optional<llvm::yaml::Hex64> NChain;
446
448
449 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Hash; }
450};
451
453 // The number of hash buckets.
454 // Not used when dumping the object, but can be used to override
455 // the real number of buckets when emiting an object from a YAML document.
456 std::optional<llvm::yaml::Hex32> NBuckets;
457
458 // Index of the first symbol in the dynamic symbol table
459 // included in the hash table.
460 llvm::yaml::Hex32 SymNdx;
461
462 // The number of words in the Bloom filter.
463 // Not used when dumping the object, but can be used to override the real
464 // number of words in the Bloom filter when emiting an object from a YAML
465 // document.
466 std::optional<llvm::yaml::Hex32> MaskWords;
467
468 // A shift constant used by the Bloom filter.
469 llvm::yaml::Hex32 Shift2;
470};
471
473 std::optional<GnuHashHeader> Header;
474 std::optional<std::vector<llvm::yaml::Hex64>> BloomFilter;
475 std::optional<std::vector<llvm::yaml::Hex32>> HashBuckets;
476 std::optional<std::vector<llvm::yaml::Hex32>> HashValues;
477
479
480 std::vector<std::pair<StringRef, bool>> getEntries() const override {
481 return {{"Header", Header.has_value()},
482 {"BloomFilter", BloomFilter.has_value()},
483 {"HashBuckets", HashBuckets.has_value()},
484 {"HashValues", HashValues.has_value()}};
485 };
486
487 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::GnuHash; }
488};
489
495};
496
500 std::vector<VernauxEntry> AuxV;
501};
502
504 std::optional<std::vector<VerneedEntry>> VerneedV;
505 std::optional<llvm::yaml::Hex64> Info;
506
508
509 std::vector<std::pair<StringRef, bool>> getEntries() const override {
510 return {{"Dependencies", VerneedV.has_value()}};
511 };
512
513 static bool classof(const Chunk *S) {
514 return S->Kind == ChunkKind::Verneed;
515 }
516};
517
519 std::optional<std::vector<YAMLFlowString>> Symbols;
520
522
523 std::vector<std::pair<StringRef, bool>> getEntries() const override {
524 return {{"Symbols", Symbols.has_value()}};
525 };
526
527 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Addrsig; }
528};
529
533};
534
536 std::optional<std::vector<LinkerOption>> Options;
537
539
540 std::vector<std::pair<StringRef, bool>> getEntries() const override {
541 return {{"Options", Options.has_value()}};
542 };
543
544 static bool classof(const Chunk *S) {
545 return S->Kind == ChunkKind::LinkerOptions;
546 }
547};
548
550 std::optional<std::vector<YAMLFlowString>> Libs;
551
553
554 std::vector<std::pair<StringRef, bool>> getEntries() const override {
555 return {{"Libraries", Libs.has_value()}};
556 };
557
558 static bool classof(const Chunk *S) {
560 }
561};
562
563// Represents the call graph profile section entry.
565 // The weight of the edge.
567};
568
570 std::optional<std::vector<CallGraphEntryWeight>> Entries;
571
573
574 std::vector<std::pair<StringRef, bool>> getEntries() const override {
575 return {{"Entries", Entries.has_value()}};
576 };
577
578 static bool classof(const Chunk *S) {
580 }
581};
582
584 std::optional<std::vector<uint16_t>> Entries;
585
587
588 std::vector<std::pair<StringRef, bool>> getEntries() const override {
589 return {{"Entries", Entries.has_value()}};
590 };
591
592 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Symver; }
593};
594
596 std::optional<uint16_t> Version;
597 std::optional<uint16_t> Flags;
598 std::optional<uint16_t> VersionNdx;
599 std::optional<uint32_t> Hash;
600 std::optional<uint16_t> VDAux;
601 std::vector<StringRef> VerNames;
602};
603
605 std::optional<std::vector<VerdefEntry>> Entries;
606 std::optional<llvm::yaml::Hex64> Info;
607
609
610 std::vector<std::pair<StringRef, bool>> getEntries() const override {
611 return {{"Entries", Entries.has_value()}};
612 };
613
614 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Verdef; }
615};
616
618 // Members of a group contain a flag and a list of section indices
619 // that are part of the group.
620 std::optional<std::vector<SectionOrType>> Members;
621 std::optional<StringRef> Signature; /* Info */
622
624
625 std::vector<std::pair<StringRef, bool>> getEntries() const override {
626 return {{"Members", Members.has_value()}};
627 };
628
629 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Group; }
630};
631
633 llvm::yaml::Hex64 Offset;
634 YAMLIntUInt Addend;
635 ELF_REL Type;
636 std::optional<StringRef> Symbol;
637};
638
640 std::optional<std::vector<Relocation>> Relocations;
642
644
645 std::vector<std::pair<StringRef, bool>> getEntries() const override {
646 return {{"Relocations", Relocations.has_value()}};
647 };
648
649 static bool classof(const Chunk *S) {
650 return S->Kind == ChunkKind::Relocation;
651 }
652};
653
655 std::optional<std::vector<llvm::yaml::Hex64>> Entries;
656
658
659 std::vector<std::pair<StringRef, bool>> getEntries() const override {
660 return {{"Entries", Entries.has_value()}};
661 };
662
663 static bool classof(const Chunk *S) {
664 return S->Kind == ChunkKind::Relr;
665 }
666};
667
669 std::optional<std::vector<uint32_t>> Entries;
670
672
673 std::vector<std::pair<StringRef, bool>> getEntries() const override {
674 return {{"Entries", Entries.has_value()}};
675 };
676
677 static bool classof(const Chunk *S) {
679 }
680};
681
683 llvm::yaml::Hex32 Offset;
684 llvm::yaml::Hex32 Value;
685};
686
688 std::optional<std::vector<ARMIndexTableEntry>> Entries;
689
691
692 std::vector<std::pair<StringRef, bool>> getEntries() const override {
693 return {{"Entries", Entries.has_value()}};
694 };
695
696 static bool classof(const Chunk *S) {
697 return S->Kind == ChunkKind::ARMIndexTable;
698 }
699};
700
701// Represents .MIPS.abiflags section
703 llvm::yaml::Hex16 Version;
704 MIPS_ISA ISALevel;
705 llvm::yaml::Hex8 ISARevision;
706 MIPS_AFL_REG GPRSize;
707 MIPS_AFL_REG CPR1Size;
708 MIPS_AFL_REG CPR2Size;
709 MIPS_ABI_FP FpABI;
710 MIPS_AFL_EXT ISAExtension;
711 MIPS_AFL_ASE ASEs;
712 MIPS_AFL_FLAGS1 Flags1;
713 llvm::yaml::Hex32 Flags2;
714
716
717 static bool classof(const Chunk *S) {
718 return S->Kind == ChunkKind::MipsABIFlags;
719 }
720};
721
723 ELF_PT Type;
724 ELF_PF Flags;
725 llvm::yaml::Hex64 VAddr;
726 llvm::yaml::Hex64 PAddr;
727 std::optional<llvm::yaml::Hex64> Align;
728 std::optional<llvm::yaml::Hex64> FileSize;
729 std::optional<llvm::yaml::Hex64> MemSize;
730 std::optional<llvm::yaml::Hex64> Offset;
731 std::optional<StringRef> FirstSec;
732 std::optional<StringRef> LastSec;
733
734 // This vector contains all chunks from [FirstSec, LastSec].
735 std::vector<Chunk *> Chunks;
736};
737
738struct Object {
740 std::vector<ProgramHeader> ProgramHeaders;
741
742 // An object might contain output section descriptions as well as
743 // custom data that does not belong to any section.
744 std::vector<std::unique_ptr<Chunk>> Chunks;
745
746 // Although in reality the symbols reside in a section, it is a lot
747 // cleaner and nicer if we read them from the YAML as a separate
748 // top-level key, which automatically ensures that invariants like there
749 // being a single SHT_SYMTAB section are upheld.
750 std::optional<std::vector<Symbol>> Symbols;
751 std::optional<std::vector<Symbol>> DynamicSymbols;
752 std::optional<DWARFYAML::Data> DWARF;
753
754 std::vector<Section *> getSections() {
755 std::vector<Section *> Ret;
756 for (const std::unique_ptr<Chunk> &Sec : Chunks)
757 if (auto S = dyn_cast<ELFYAML::Section>(Sec.get()))
758 Ret.push_back(S);
759 return Ret;
760 }
761
763 for (const std::unique_ptr<Chunk> &C : Chunks)
764 if (auto *S = dyn_cast<ELFYAML::SectionHeaderTable>(C.get()))
765 return *S;
766 llvm_unreachable("the section header table chunk must always be present");
767 }
768
769 ELF_ELFOSABI getOSAbi() const;
770 unsigned getMachine() const;
771};
772
774 const NoBitsSection &S);
775
776} // end namespace ELFYAML
777} // end namespace llvm
778
786 llvm::ELFYAML::PGOAnalysisMapEntry::PGOBBEntry::SuccessorEntry)
787LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::DynamicEntry)
788LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::LinkerOption)
789LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::CallGraphEntryWeight)
790LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::NoteEntry)
791LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::ProgramHeader)
792LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::SectionHeader)
793LLVM_YAML_IS_SEQUENCE_VECTOR(std::unique_ptr<llvm::ELFYAML::Chunk>)
794LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::Symbol)
795LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::VerdefEntry)
796LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::VernauxEntry)
797LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::VerneedEntry)
798LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::Relocation)
799LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::SectionOrType)
800LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::ARMIndexTableEntry)
801
802namespace llvm {
803namespace yaml {
804
805template <> struct ScalarTraits<ELFYAML::YAMLIntUInt> {
806 static void output(const ELFYAML::YAMLIntUInt &Val, void *Ctx,
807 raw_ostream &Out);
808 static StringRef input(StringRef Scalar, void *Ctx,
809 ELFYAML::YAMLIntUInt &Val);
810 static QuotingType mustQuote(StringRef) { return QuotingType::None; }
811};
812
813template <>
814struct ScalarEnumerationTraits<ELFYAML::ELF_ET> {
815 static void enumeration(IO &IO, ELFYAML::ELF_ET &Value);
816};
817
818template <> struct ScalarEnumerationTraits<ELFYAML::ELF_PT> {
819 static void enumeration(IO &IO, ELFYAML::ELF_PT &Value);
820};
821
822template <> struct ScalarEnumerationTraits<ELFYAML::ELF_NT> {
823 static void enumeration(IO &IO, ELFYAML::ELF_NT &Value);
824};
825
826template <>
827struct ScalarEnumerationTraits<ELFYAML::ELF_EM> {
828 static void enumeration(IO &IO, ELFYAML::ELF_EM &Value);
829};
830
831template <>
832struct ScalarEnumerationTraits<ELFYAML::ELF_ELFCLASS> {
833 static void enumeration(IO &IO, ELFYAML::ELF_ELFCLASS &Value);
834};
835
836template <>
837struct ScalarEnumerationTraits<ELFYAML::ELF_ELFDATA> {
838 static void enumeration(IO &IO, ELFYAML::ELF_ELFDATA &Value);
839};
840
841template <>
842struct ScalarEnumerationTraits<ELFYAML::ELF_ELFOSABI> {
843 static void enumeration(IO &IO, ELFYAML::ELF_ELFOSABI &Value);
844};
845
846template <>
847struct ScalarBitSetTraits<ELFYAML::ELF_EF> {
848 static void bitset(IO &IO, ELFYAML::ELF_EF &Value);
849};
850
851template <> struct ScalarBitSetTraits<ELFYAML::ELF_PF> {
852 static void bitset(IO &IO, ELFYAML::ELF_PF &Value);
853};
854
855template <>
856struct ScalarEnumerationTraits<ELFYAML::ELF_SHT> {
857 static void enumeration(IO &IO, ELFYAML::ELF_SHT &Value);
858};
859
860template <>
861struct ScalarBitSetTraits<ELFYAML::ELF_SHF> {
862 static void bitset(IO &IO, ELFYAML::ELF_SHF &Value);
863};
864
865template <> struct ScalarEnumerationTraits<ELFYAML::ELF_SHN> {
866 static void enumeration(IO &IO, ELFYAML::ELF_SHN &Value);
867};
868
869template <> struct ScalarEnumerationTraits<ELFYAML::ELF_STB> {
870 static void enumeration(IO &IO, ELFYAML::ELF_STB &Value);
871};
872
873template <>
874struct ScalarEnumerationTraits<ELFYAML::ELF_STT> {
875 static void enumeration(IO &IO, ELFYAML::ELF_STT &Value);
876};
877
878template <>
879struct ScalarEnumerationTraits<ELFYAML::ELF_REL> {
880 static void enumeration(IO &IO, ELFYAML::ELF_REL &Value);
881};
882
883template <>
884struct ScalarEnumerationTraits<ELFYAML::ELF_DYNTAG> {
885 static void enumeration(IO &IO, ELFYAML::ELF_DYNTAG &Value);
886};
887
888template <>
889struct ScalarEnumerationTraits<ELFYAML::ELF_RSS> {
890 static void enumeration(IO &IO, ELFYAML::ELF_RSS &Value);
891};
892
893template <>
894struct ScalarEnumerationTraits<ELFYAML::MIPS_AFL_REG> {
895 static void enumeration(IO &IO, ELFYAML::MIPS_AFL_REG &Value);
896};
897
898template <>
899struct ScalarEnumerationTraits<ELFYAML::MIPS_ABI_FP> {
900 static void enumeration(IO &IO, ELFYAML::MIPS_ABI_FP &Value);
901};
902
903template <>
904struct ScalarEnumerationTraits<ELFYAML::MIPS_AFL_EXT> {
905 static void enumeration(IO &IO, ELFYAML::MIPS_AFL_EXT &Value);
906};
907
908template <>
909struct ScalarEnumerationTraits<ELFYAML::MIPS_ISA> {
910 static void enumeration(IO &IO, ELFYAML::MIPS_ISA &Value);
911};
912
913template <>
914struct ScalarBitSetTraits<ELFYAML::MIPS_AFL_ASE> {
915 static void bitset(IO &IO, ELFYAML::MIPS_AFL_ASE &Value);
916};
917
918template <>
919struct ScalarBitSetTraits<ELFYAML::MIPS_AFL_FLAGS1> {
920 static void bitset(IO &IO, ELFYAML::MIPS_AFL_FLAGS1 &Value);
921};
922
923template <>
924struct MappingTraits<ELFYAML::FileHeader> {
925 static void mapping(IO &IO, ELFYAML::FileHeader &FileHdr);
926};
927
928template <> struct MappingTraits<ELFYAML::SectionHeader> {
929 static void mapping(IO &IO, ELFYAML::SectionHeader &SHdr);
930};
931
932template <> struct MappingTraits<ELFYAML::ProgramHeader> {
933 static void mapping(IO &IO, ELFYAML::ProgramHeader &FileHdr);
934 static std::string validate(IO &IO, ELFYAML::ProgramHeader &FileHdr);
935};
936
937template <>
938struct MappingTraits<ELFYAML::Symbol> {
939 static void mapping(IO &IO, ELFYAML::Symbol &Symbol);
940 static std::string validate(IO &IO, ELFYAML::Symbol &Symbol);
941};
942
943template <> struct MappingTraits<ELFYAML::StackSizeEntry> {
944 static void mapping(IO &IO, ELFYAML::StackSizeEntry &Rel);
945};
946
947template <> struct MappingTraits<ELFYAML::BBAddrMapEntry> {
948 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry &E);
949};
950
951template <> struct MappingTraits<ELFYAML::BBAddrMapEntry::BBRangeEntry> {
952 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry::BBRangeEntry &E);
953};
954
955template <> struct MappingTraits<ELFYAML::BBAddrMapEntry::BBEntry> {
956 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry::BBEntry &E);
957};
958
959template <> struct MappingTraits<ELFYAML::PGOAnalysisMapEntry> {
960 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry &Rel);
961};
962
963template <> struct MappingTraits<ELFYAML::PGOAnalysisMapEntry::PGOBBEntry> {
964 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry::PGOBBEntry &Rel);
965};
966
967template <>
968struct MappingTraits<ELFYAML::PGOAnalysisMapEntry::PGOBBEntry::SuccessorEntry> {
969 static void
970 mapping(IO &IO,
971 ELFYAML::PGOAnalysisMapEntry::PGOBBEntry::SuccessorEntry &Rel);
972};
973
974template <> struct MappingTraits<ELFYAML::GnuHashHeader> {
975 static void mapping(IO &IO, ELFYAML::GnuHashHeader &Rel);
976};
977
978template <> struct MappingTraits<ELFYAML::DynamicEntry> {
979 static void mapping(IO &IO, ELFYAML::DynamicEntry &Rel);
980};
981
982template <> struct MappingTraits<ELFYAML::NoteEntry> {
983 static void mapping(IO &IO, ELFYAML::NoteEntry &N);
984};
985
986template <> struct MappingTraits<ELFYAML::VerdefEntry> {
987 static void mapping(IO &IO, ELFYAML::VerdefEntry &E);
988};
989
990template <> struct MappingTraits<ELFYAML::VerneedEntry> {
991 static void mapping(IO &IO, ELFYAML::VerneedEntry &E);
992};
993
994template <> struct MappingTraits<ELFYAML::VernauxEntry> {
995 static void mapping(IO &IO, ELFYAML::VernauxEntry &E);
996};
997
998template <> struct MappingTraits<ELFYAML::LinkerOption> {
999 static void mapping(IO &IO, ELFYAML::LinkerOption &Sym);
1000};
1001
1002template <> struct MappingTraits<ELFYAML::CallGraphEntryWeight> {
1003 static void mapping(IO &IO, ELFYAML::CallGraphEntryWeight &E);
1004};
1005
1006template <> struct MappingTraits<ELFYAML::Relocation> {
1007 static void mapping(IO &IO, ELFYAML::Relocation &Rel);
1008};
1009
1010template <> struct MappingTraits<ELFYAML::ARMIndexTableEntry> {
1011 static void mapping(IO &IO, ELFYAML::ARMIndexTableEntry &E);
1012};
1013
1014template <> struct MappingTraits<std::unique_ptr<ELFYAML::Chunk>> {
1015 static void mapping(IO &IO, std::unique_ptr<ELFYAML::Chunk> &C);
1016 static std::string validate(IO &io, std::unique_ptr<ELFYAML::Chunk> &C);
1017};
1018
1019template <>
1020struct MappingTraits<ELFYAML::Object> {
1021 static void mapping(IO &IO, ELFYAML::Object &Object);
1022};
1023
1024template <> struct MappingTraits<ELFYAML::SectionOrType> {
1025 static void mapping(IO &IO, ELFYAML::SectionOrType &sectionOrType);
1026};
1027
1028} // end namespace yaml
1029} // end namespace llvm
1030
1031#endif // LLVM_OBJECTYAML_ELFYAML_H
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
This file declares classes for handling the YAML representation of DWARF Debug Info.
std::string Name
Symbol * Sym
Definition: ELF_riscv.cpp:479
#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)
#define LLVM_YAML_STRONG_TYPEDEF(_base, _type)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:55
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:82
Specialized YAMLIO scalar type for representing a binary blob.
Definition: YAML.h:64
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
@ C
The default llvm calling convention, compatible with C.
Definition: CallingConv.h:34
std::string appendUniqueSuffix(StringRef Name, const Twine &Msg)
Definition: ELFEmitter.cpp:692
unsigned getDefaultShEntSize(unsigned EMachine, ELF_SHT SecType, StringRef SecName)
Definition: ELFYAML.h:77
StringRef dropUniqueSuffix(StringRef S)
Definition: ELFEmitter.cpp:699
bool shouldAllocateFileSpace(ArrayRef< ProgramHeader > Phdrs, const NoBitsSection &S)
@ EM_MIPS
Definition: ELF.h:146
@ SHT_GROUP
Definition: ELF.h:1154
@ SHT_REL
Definition: ELF.h:1148
@ SHT_LLVM_CALL_GRAPH_PROFILE
Definition: ELF.h:1177
@ SHT_SYMTAB
Definition: ELF.h:1141
@ SHT_RELR
Definition: ELF.h:1158
@ SHT_DYNAMIC
Definition: ELF.h:1145
@ SHT_SYMTAB_SHNDX
Definition: ELF.h:1155
@ SHT_RELA
Definition: ELF.h:1143
@ SHT_DYNSYM
Definition: ELF.h:1150
@ SHT_MIPS_ABIFLAGS
Definition: ELF.h:1219
@ SHT_GNU_versym
Definition: ELF.h:1191
@ SHT_HASH
Definition: ELF.h:1144
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Implement std::hash so that hash_code can be used in STL containers.
Definition: BitVector.h:856
#define N
llvm::yaml::Hex32 Offset
Definition: ELFYAML.h:683
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:692
static bool classof(const Chunk *S)
Definition: ELFYAML.h:696
std::optional< std::vector< ARMIndexTableEntry > > Entries
Definition: ELFYAML.h:688
std::optional< std::vector< YAMLFlowString > > Symbols
Definition: ELFYAML.h:519
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:523
static bool classof(const Chunk *S)
Definition: ELFYAML.h:527
std::optional< std::vector< llvm::yaml::Hex64 > > CallsiteEndOffsets
Definition: ELFYAML.h:165
std::optional< uint64_t > NumBlocks
Definition: ELFYAML.h:172
std::optional< std::vector< BBEntry > > BBEntries
Definition: ELFYAML.h:173
llvm::yaml::Hex64 getFunctionAddress() const
Definition: ELFYAML.h:179
std::optional< uint64_t > NumBBRanges
Definition: ELFYAML.h:176
bool hasAnyCallsiteEndOffsets() const
Definition: ELFYAML.h:186
std::optional< std::vector< BBRangeEntry > > BBRanges
Definition: ELFYAML.h:177
llvm::yaml::Hex8 Feature
Definition: ELFYAML.h:168
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:364
static bool classof(const Chunk *S)
Definition: ELFYAML.h:368
std::optional< std::vector< BBAddrMapEntry > > Entries
Definition: ELFYAML.h:359
std::optional< std::vector< PGOAnalysisMapEntry > > PGOAnalyses
Definition: ELFYAML.h:360
std::optional< std::vector< CallGraphEntryWeight > > Entries
Definition: ELFYAML.h:570
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:574
static bool classof(const Chunk *S)
Definition: ELFYAML.h:578
Chunk(ChunkKind K, bool Implicit)
Definition: ELFYAML.h:262
StringRef Name
Definition: ELFYAML.h:255
std::optional< llvm::yaml::Hex64 > Offset
Definition: ELFYAML.h:256
ChunkKind Kind
Definition: ELFYAML.h:254
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:554
static bool classof(const Chunk *S)
Definition: ELFYAML.h:558
std::optional< std::vector< YAMLFlowString > > Libs
Definition: ELFYAML.h:550
llvm::yaml::Hex64 Val
Definition: ELFYAML.h:156
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:396
static bool classof(const Chunk *S)
Definition: ELFYAML.h:400
std::optional< std::vector< DynamicEntry > > Entries
Definition: ELFYAML.h:392
std::optional< llvm::yaml::Hex16 > EPhNum
Definition: ELFYAML.h:126
std::optional< llvm::yaml::Hex64 > EShOff
Definition: ELFYAML.h:128
std::optional< llvm::yaml::Hex64 > EPhOff
Definition: ELFYAML.h:124
ELF_ELFCLASS Class
Definition: ELFYAML.h:114
std::optional< llvm::yaml::Hex16 > EShEntSize
Definition: ELFYAML.h:127
std::optional< llvm::yaml::Hex16 > EPhEntSize
Definition: ELFYAML.h:125
llvm::yaml::Hex8 ABIVersion
Definition: ELFYAML.h:117
std::optional< llvm::yaml::Hex16 > EShNum
Definition: ELFYAML.h:129
llvm::yaml::Hex64 Entry
Definition: ELFYAML.h:121
ELF_ELFOSABI OSABI
Definition: ELFYAML.h:116
std::optional< ELF_EF > Flags
Definition: ELFYAML.h:120
std::optional< ELF_EM > Machine
Definition: ELFYAML.h:119
std::optional< StringRef > SectionHeaderStringTable
Definition: ELFYAML.h:122
std::optional< llvm::yaml::Hex16 > EShStrNdx
Definition: ELFYAML.h:130
llvm::yaml::Hex64 Size
Definition: ELFYAML.h:326
std::optional< yaml::BinaryRef > Pattern
Definition: ELFYAML.h:325
static bool classof(const Chunk *S)
Definition: ELFYAML.h:330
std::optional< llvm::yaml::Hex32 > MaskWords
Definition: ELFYAML.h:466
llvm::yaml::Hex32 SymNdx
Definition: ELFYAML.h:460
llvm::yaml::Hex32 Shift2
Definition: ELFYAML.h:469
std::optional< llvm::yaml::Hex32 > NBuckets
Definition: ELFYAML.h:456
std::optional< std::vector< llvm::yaml::Hex64 > > BloomFilter
Definition: ELFYAML.h:474
std::optional< std::vector< llvm::yaml::Hex32 > > HashBuckets
Definition: ELFYAML.h:475
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:480
static bool classof(const Chunk *S)
Definition: ELFYAML.h:487
std::optional< GnuHashHeader > Header
Definition: ELFYAML.h:473
std::optional< std::vector< llvm::yaml::Hex32 > > HashValues
Definition: ELFYAML.h:476
static bool classof(const Chunk *S)
Definition: ELFYAML.h:629
std::optional< std::vector< SectionOrType > > Members
Definition: ELFYAML.h:620
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:625
std::optional< StringRef > Signature
Definition: ELFYAML.h:621
std::optional< std::vector< uint32_t > > Chain
Definition: ELFYAML.h:436
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:438
std::optional< llvm::yaml::Hex64 > NChain
Definition: ELFYAML.h:445
static bool classof(const Chunk *S)
Definition: ELFYAML.h:449
std::optional< std::vector< uint32_t > > Bucket
Definition: ELFYAML.h:435
std::optional< llvm::yaml::Hex64 > NBucket
Definition: ELFYAML.h:444
std::optional< std::vector< LinkerOption > > Options
Definition: ELFYAML.h:536
static bool classof(const Chunk *S)
Definition: ELFYAML.h:544
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:540
llvm::yaml::Hex16 Version
Definition: ELFYAML.h:703
static bool classof(const Chunk *S)
Definition: ELFYAML.h:717
MIPS_AFL_FLAGS1 Flags1
Definition: ELFYAML.h:712
llvm::yaml::Hex8 ISARevision
Definition: ELFYAML.h:705
MIPS_AFL_EXT ISAExtension
Definition: ELFYAML.h:710
llvm::yaml::Hex32 Flags2
Definition: ELFYAML.h:713
static bool classof(const Chunk *S)
Definition: ELFYAML.h:419
yaml::BinaryRef Desc
Definition: ELFYAML.h:220
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:427
std::optional< std::vector< ELFYAML::NoteEntry > > Notes
Definition: ELFYAML.h:423
static bool classof(const Chunk *S)
Definition: ELFYAML.h:431
std::optional< std::vector< Symbol > > DynamicSymbols
Definition: ELFYAML.h:751
unsigned getMachine() const
Definition: ELFYAML.cpp:35
std::optional< DWARFYAML::Data > DWARF
Definition: ELFYAML.h:752
const SectionHeaderTable & getSectionHeaderTable() const
Definition: ELFYAML.h:762
FileHeader Header
Definition: ELFYAML.h:739
std::vector< std::unique_ptr< Chunk > > Chunks
Definition: ELFYAML.h:744
ELF_ELFOSABI getOSAbi() const
Definition: ELFYAML.cpp:33
std::vector< ProgramHeader > ProgramHeaders
Definition: ELFYAML.h:740
std::optional< std::vector< Symbol > > Symbols
Definition: ELFYAML.h:750
std::vector< Section * > getSections()
Definition: ELFYAML.h:754
std::optional< std::vector< SuccessorEntry > > Successors
Definition: ELFYAML.h:207
std::optional< std::vector< PGOBBEntry > > PGOBBEntries
Definition: ELFYAML.h:210
std::optional< uint64_t > FuncEntryCount
Definition: ELFYAML.h:209
std::optional< llvm::yaml::Hex64 > Align
Definition: ELFYAML.h:727
llvm::yaml::Hex64 PAddr
Definition: ELFYAML.h:726
std::optional< llvm::yaml::Hex64 > Offset
Definition: ELFYAML.h:730
llvm::yaml::Hex64 VAddr
Definition: ELFYAML.h:725
std::optional< llvm::yaml::Hex64 > MemSize
Definition: ELFYAML.h:729
std::optional< StringRef > FirstSec
Definition: ELFYAML.h:731
std::optional< StringRef > LastSec
Definition: ELFYAML.h:732
std::optional< llvm::yaml::Hex64 > FileSize
Definition: ELFYAML.h:728
std::vector< Chunk * > Chunks
Definition: ELFYAML.h:735
static bool classof(const Chunk *S)
Definition: ELFYAML.h:408
std::optional< llvm::yaml::Hex64 > Info
Definition: ELFYAML.h:404
std::optional< std::vector< uint8_t > > ContentBuf
Definition: ELFYAML.h:413
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:645
std::optional< std::vector< Relocation > > Relocations
Definition: ELFYAML.h:640
static bool classof(const Chunk *S)
Definition: ELFYAML.h:649
std::optional< StringRef > Symbol
Definition: ELFYAML.h:636
llvm::yaml::Hex64 Offset
Definition: ELFYAML.h:633
static bool classof(const Chunk *S)
Definition: ELFYAML.h:663
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:659
std::optional< std::vector< llvm::yaml::Hex64 > > Entries
Definition: ELFYAML.h:655
std::optional< std::vector< SectionHeader > > Excluded
Definition: ELFYAML.h:342
static constexpr StringRef TypeStr
Definition: ELFYAML.h:355
std::optional< bool > NoHeaders
Definition: ELFYAML.h:343
static bool classof(const Chunk *S)
Definition: ELFYAML.h:337
SectionHeaderTable(bool IsImplicit)
Definition: ELFYAML.h:334
size_t getNumHeaders(size_t SectionsNum) const
Definition: ELFYAML.h:345
std::optional< std::vector< SectionHeader > > Sections
Definition: ELFYAML.h:341
std::optional< llvm::yaml::Hex64 > Address
Definition: ELFYAML.h:269
std::optional< StringRef > Link
Definition: ELFYAML.h:270
Section(ChunkKind Kind, bool IsImplicit=false)
Definition: ELFYAML.h:280
std::optional< llvm::yaml::Hex64 > Size
Definition: ELFYAML.h:275
static bool classof(const Chunk *S)
Definition: ELFYAML.h:282
std::optional< llvm::yaml::Hex64 > ShAddrAlign
Definition: ELFYAML.h:297
llvm::yaml::Hex64 AddressAlign
Definition: ELFYAML.h:271
unsigned OriginalSecNdx
Definition: ELFYAML.h:278
std::optional< ELF_SHF > Flags
Definition: ELFYAML.h:268
std::optional< ELF_SHT > ShType
Definition: ELFYAML.h:318
std::optional< llvm::yaml::Hex64 > ShOffset
Definition: ELFYAML.h:305
virtual std::vector< std::pair< StringRef, bool > > getEntries() const
Definition: ELFYAML.h:289
std::optional< llvm::yaml::Hex64 > ShFlags
Definition: ELFYAML.h:312
std::optional< llvm::yaml::Hex64 > ShName
Definition: ELFYAML.h:301
std::optional< yaml::BinaryRef > Content
Definition: ELFYAML.h:274
std::optional< llvm::yaml::Hex64 > EntSize
Definition: ELFYAML.h:272
std::optional< llvm::yaml::Hex64 > ShSize
Definition: ELFYAML.h:309
llvm::yaml::Hex64 Size
Definition: ELFYAML.h:215
llvm::yaml::Hex64 Address
Definition: ELFYAML.h:214
static bool classof(const Chunk *S)
Definition: ELFYAML.h:382
static bool nameMatches(StringRef Name)
Definition: ELFYAML.h:386
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:378
std::optional< std::vector< StackSizeEntry > > Entries
Definition: ELFYAML.h:374
std::optional< ELF_SHN > Index
Definition: ELFYAML.h:141
std::optional< StringRef > Section
Definition: ELFYAML.h:140
std::optional< uint8_t > Other
Definition: ELFYAML.h:145
std::optional< uint32_t > StName
Definition: ELFYAML.h:147
std::optional< llvm::yaml::Hex64 > Value
Definition: ELFYAML.h:143
std::optional< llvm::yaml::Hex64 > Size
Definition: ELFYAML.h:144
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:673
static bool classof(const Chunk *S)
Definition: ELFYAML.h:677
std::optional< std::vector< uint32_t > > Entries
Definition: ELFYAML.h:669
std::optional< std::vector< uint16_t > > Entries
Definition: ELFYAML.h:584
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:588
static bool classof(const Chunk *S)
Definition: ELFYAML.h:592
std::optional< uint16_t > Flags
Definition: ELFYAML.h:597
std::optional< uint16_t > VDAux
Definition: ELFYAML.h:600
std::vector< StringRef > VerNames
Definition: ELFYAML.h:601
std::optional< uint16_t > VersionNdx
Definition: ELFYAML.h:598
std::optional< uint16_t > Version
Definition: ELFYAML.h:596
std::optional< uint32_t > Hash
Definition: ELFYAML.h:599
static bool classof(const Chunk *S)
Definition: ELFYAML.h:614
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:610
std::optional< llvm::yaml::Hex64 > Info
Definition: ELFYAML.h:606
std::optional< std::vector< VerdefEntry > > Entries
Definition: ELFYAML.h:605
std::vector< VernauxEntry > AuxV
Definition: ELFYAML.h:500
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition: ELFYAML.h:509
std::optional< llvm::yaml::Hex64 > Info
Definition: ELFYAML.h:505
static bool classof(const Chunk *S)
Definition: ELFYAML.h:513
std::optional< std::vector< VerneedEntry > > VerneedV
Definition: ELFYAML.h:504