[lld] r330750 - [WebAssembly] Match llvm-side change to reloc section header

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 24 11:11:48 PDT 2018


Author: sbc
Date: Tue Apr 24 11:11:47 2018
New Revision: 330750

URL: http://llvm.org/viewvc/llvm-project?rev=330750&view=rev
Log:
[WebAssembly] Match llvm-side change to reloc section header

Differential Revision: https://reviews.llvm.org/D45795

Modified:
    lld/trunk/wasm/Writer.cpp

Modified: lld/trunk/wasm/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Writer.cpp?rev=330750&r1=330749&r2=330750&view=diff
==============================================================================
--- lld/trunk/wasm/Writer.cpp (original)
+++ lld/trunk/wasm/Writer.cpp Tue Apr 24 11:11:47 2018
@@ -380,7 +380,7 @@ void Writer::createRelocSections() {
 
     SyntheticSection *Section = createSyntheticSection(WASM_SEC_CUSTOM, Name);
     raw_ostream &OS = Section->getStream();
-    writeUleb128(OS, OSec->Type, "reloc section");
+    writeUleb128(OS, i, "reloc section");
     writeUleb128(OS, Count, "reloc count");
     OSec->writeRelocations(OS);
   }




More information about the llvm-commits mailing list