summaryrefslogtreecommitdiffstats
path: root/lld/wasm/MarkLive.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-02-04 17:49:33 +0000
committerSam Clegg <sbc@chromium.org>2019-02-04 17:49:33 +0000
commit79e33171d6aed199f08a172ac41bd39f8f3a35b4 (patch)
tree201fa27fcbd5df9cc1ab40d9b303f22cc7c7e2cd /lld/wasm/MarkLive.cpp
parent92834ffcbf83f55def9360b0e9e41872c65cfd64 (diff)
downloadbcm5719-llvm-79e33171d6aed199f08a172ac41bd39f8f3a35b4.tar.gz
bcm5719-llvm-79e33171d6aed199f08a172ac41bd39f8f3a35b4.zip
[WebAssembly] Update relocation naming to match llvm change. NFC.
Differential Revision: https://reviews.llvm.org/D57698 llvm-svn: 353066
Diffstat (limited to 'lld/wasm/MarkLive.cpp')
-rw-r--r--lld/wasm/MarkLive.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/wasm/MarkLive.cpp b/lld/wasm/MarkLive.cpp
index e6db4c3e41f..da70e8e047c 100644
--- a/lld/wasm/MarkLive.cpp
+++ b/lld/wasm/MarkLive.cpp
@@ -71,7 +71,7 @@ void lld::wasm::markLive() {
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 @@ void lld::wasm::markLive() {
// 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;
OpenPOWER on IntegriCloud