[llvm] [Object][GOFF] Support RLD records (PR #216780)

Sean Fertile via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 12:48:28 PDT 2026


================
@@ -759,3 +765,118 @@ basic_symbol_iterator GOFFObjectFile::symbol_end() const {
   DataRefImpl Symb;
   return basic_symbol_iterator(SymbolRef(Symb, this));
 }
+
+// Populate the relocation entries.
+void GOFFObjectFile::setRelocationData(const uint8_t *RldRecord) {
----------------
mandlebug wrote:

In the loop that calls this function we have a small vector that was produced when creating the flattened data. If we change the signature to take a `const SmallVectorImpl<uint8_t>&` or even an `ArrayRef<uint8_t>` then we can avoid having to reparse the records.

https://github.com/llvm/llvm-project/pull/216780


More information about the llvm-commits mailing list