diff options
Diffstat (limited to 'lld/ELF/InputSection.h')
| -rw-r--r-- | lld/ELF/InputSection.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h index 6659530a9c9c..e3b7af13d066 100644 --- a/lld/ELF/InputSection.h +++ b/lld/ELF/InputSection.h @@ -61,7 +61,7 @@ template <class ELFT> struct RelsOrRelas { // sections. class SectionBase { public: - enum Kind { Regular, Synthetic, Spill, EHFrame, Merge, Output }; + enum Kind { Regular, Synthetic, Spill, EHFrame, Merge, Output, Class }; Kind kind() const { return (Kind)sectionKind; } @@ -148,7 +148,9 @@ public: uint32_t addralign, ArrayRef<uint8_t> data, StringRef name, Kind sectionKind); - static bool classof(const SectionBase *s) { return s->kind() != Output; } + static bool classof(const SectionBase *s) { + return s->kind() != Output && s->kind() != Class; + } // The file which contains this section. Its dynamic type is usually // ObjFile<ELFT>, but may be an InputFile of InternalKind (for a synthetic |
