diff --git a/lld/COFF/Chunks.h b/lld/COFF/Chunks.h index af3f2d570483..ba2f0d43b726 100644 --- a/lld/COFF/Chunks.h +++ b/lld/COFF/Chunks.h @@ -174,6 +174,23 @@ protected: NonSectionChunk(Kind k = OtherKind) : Chunk(k) {} }; +// MinGW specific; information about one individual location in the image +// that needs to be fixed up at runtime after loading. This represents +// one individual element in the PseudoRelocTableChunk table. +class RuntimePseudoReloc { +public: + RuntimePseudoReloc(Defined *sym, SectionChunk *target, uint32_t targetOffset, + int flags) + : sym(sym), target(target), targetOffset(targetOffset), flags(flags) {} + + Defined *sym; + SectionChunk *target; + uint32_t targetOffset; + // The Flags field contains the size of the relocation, in bits. No other + // flags are currently defined. + int flags; +}; + // A chunk corresponding a section of an input file. class SectionChunk final : public Chunk { // Identical COMDAT Folding feature accesses section internal data. @@ -649,23 +666,6 @@ private: std::vector relocs; }; -// MinGW specific; information about one individual location in the image -// that needs to be fixed up at runtime after loading. This represents -// one individual element in the PseudoRelocTableChunk table. -class RuntimePseudoReloc { -public: - RuntimePseudoReloc(Defined *sym, SectionChunk *target, uint32_t targetOffset, - int flags) - : sym(sym), target(target), targetOffset(targetOffset), flags(flags) {} - - Defined *sym; - SectionChunk *target; - uint32_t targetOffset; - // The Flags field contains the size of the relocation, in bits. No other - // flags are currently defined. - int flags; -}; - // MinGW specific. A Chunk that contains one pointer-sized absolute value. class AbsolutePointerChunk : public NonSectionChunk { public: