diff options
Diffstat (limited to 'lld/wasm/InputChunks.h')
-rw-r--r-- | lld/wasm/InputChunks.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/wasm/InputChunks.h b/lld/wasm/InputChunks.h index 4bebfbd940f..b816ff8468f 100644 --- a/lld/wasm/InputChunks.h +++ b/lld/wasm/InputChunks.h @@ -79,6 +79,10 @@ protected: virtual ArrayRef<uint8_t> data() const = 0; virtual uint32_t getInputSectionOffset() const = 0; + // Verifies the existing data at relocation targets matches our expectations. + // This is performed only debug builds as an extra sanity check. + void verifyRelocTargets() const; + std::vector<WasmRelocation> Relocations; Kind SectionKind; }; |