Skip to content

Commit 4b47bb2

Browse files
committed
Make CustomRawContentSection sibling and independet from RawContentSection
1 parent eedb1bf commit 4b47bb2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/include/llvm/ObjectYAML/ELFYAML.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ struct DynamicSection : Section {
389389
struct RawContentSection : Section {
390390
std::optional<llvm::yaml::Hex64> Info;
391391

392-
RawContentSection(ChunkKind Kind = ChunkKind::RawContent) : Section(Kind) {}
392+
RawContentSection() : Section(ChunkKind::RawContent) {}
393393

394394
static bool classof(const Chunk *S) {
395395
return S->Kind == ChunkKind::RawContent;
@@ -400,8 +400,10 @@ struct RawContentSection : Section {
400400
};
401401

402402
/// Abstract base class for non-blob contents.
403-
struct CustomRawContentSection : RawContentSection {
404-
CustomRawContentSection() : RawContentSection(ChunkKind::CustomRawContent) {}
403+
struct CustomRawContentSection : Section {
404+
std::optional<llvm::yaml::Hex64> Info;
405+
406+
CustomRawContentSection() : Section(ChunkKind::CustomRawContent) {}
405407

406408
/// Apply mappings.
407409
virtual void sectionMapping(yaml::IO &IO) = 0;

0 commit comments

Comments
 (0)