[WebAssembly] Update relocation naming to match llvm change. NFC.
Differential Revision: https://reviews.llvm.org/D57698
llvm-svn: 353066
diff --git a/lld/wasm/MarkLive.cpp b/lld/wasm/MarkLive.cpp
index e6db4c3..da70e8e 100644
--- a/lld/wasm/MarkLive.cpp
+++ b/lld/wasm/MarkLive.cpp
@@ -71,7 +71,7 @@
InputChunk *C = Q.pop_back_val();
for (const WasmRelocation Reloc : C->getRelocations()) {
- if (Reloc.Type == R_WEBASSEMBLY_TYPE_INDEX_LEB)
+ if (Reloc.Type == R_WASM_TYPE_INDEX_LEB)
continue;
Symbol *Sym = C->File->getSymbol(Reloc.Index);
@@ -82,8 +82,8 @@
// zero is only reachable via "call", not via "call_indirect". The stub
// functions used for weak-undefined symbols have this behaviour (compare
// equal to null pointer, only reachable via direct call).
- if (Reloc.Type == R_WEBASSEMBLY_TABLE_INDEX_SLEB ||
- Reloc.Type == R_WEBASSEMBLY_TABLE_INDEX_I32) {
+ if (Reloc.Type == R_WASM_TABLE_INDEX_SLEB ||
+ Reloc.Type == R_WASM_TABLE_INDEX_I32) {
FunctionSymbol *FuncSym = cast<FunctionSymbol>(Sym);
if (FuncSym->hasTableIndex() && FuncSym->getTableIndex() == 0)
continue;