[llvm] r298612 - [WebAssembly] Fix import type to be signed LEBs

Derek Schuff via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 23 08:46:47 PDT 2017


Author: dschuff
Date: Thu Mar 23 10:46:47 2017
New Revision: 298612

URL: http://llvm.org/viewvc/llvm-project?rev=298612&view=rev
Log:
[WebAssembly] Fix import type to be signed LEBs

This fix is a follow up a previous change with stored
value types as signed integers in memory.

In future, once the yaml<->wasm binary patche lands we
can add test coverage for this kind of thing.

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

Patch by Sam Clegg

Modified:
    llvm/trunk/lib/MC/WasmObjectWriter.cpp

Modified: llvm/trunk/lib/MC/WasmObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WasmObjectWriter.cpp?rev=298612&r1=298611&r2=298612&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WasmObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WasmObjectWriter.cpp Thu Mar 23 10:46:47 2017
@@ -338,7 +338,7 @@ struct WasmImport {
   StringRef ModuleName;
   StringRef FieldName;
   unsigned Kind;
-  uint32_t Type;
+  int32_t Type;
 };
 
 // A wasm function to be written into the function section.




More information about the llvm-commits mailing list