[PATCH] D47226: [WebAssembly] Remove dead code from LEB compression pass. NFC.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 22 13:56:15 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD333030: [WebAssembly] Remove dead code from LEB compression pass. (authored by sbc, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D47226?vs=148095&id=148099#toc
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D47226
Files:
wasm/InputChunks.cpp
Index: wasm/InputChunks.cpp
===================================================================
--- wasm/InputChunks.cpp
+++ wasm/InputChunks.cpp
@@ -193,12 +193,8 @@
case R_WEBASSEMBLY_TABLE_INDEX_SLEB:
case R_WEBASSEMBLY_MEMORY_ADDR_SLEB:
return encodeSLEB128(static_cast<int32_t>(Value), Buf);
- case R_WEBASSEMBLY_TABLE_INDEX_I32:
- case R_WEBASSEMBLY_MEMORY_ADDR_I32:
- write32le(Buf, Value);
- return 4;
default:
- llvm_unreachable("unknown relocation type");
+ llvm_unreachable("unexpected relocation type");
}
}
@@ -211,11 +207,8 @@
case R_WEBASSEMBLY_TABLE_INDEX_SLEB:
case R_WEBASSEMBLY_MEMORY_ADDR_SLEB:
return 5;
- case R_WEBASSEMBLY_TABLE_INDEX_I32:
- case R_WEBASSEMBLY_MEMORY_ADDR_I32:
- return 4;
default:
- llvm_unreachable("unknown relocation type");
+ llvm_unreachable("unexpected relocation type");
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47226.148099.patch
Type: text/x-patch
Size: 888 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180522/d42788e4/attachment.bin>
More information about the llvm-commits
mailing list