summaryrefslogtreecommitdiffstats
path: root/lld/wasm/MarkLive.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-02-20 23:38:27 +0000
committerSam Clegg <sbc@chromium.org>2018-02-20 23:38:27 +0000
commit00245539b6426f2cb9eca1a418fb1437b5295dcc (patch)
treedd750076e8adac7227febad2eb2e720353be2457 /lld/wasm/MarkLive.cpp
parent83573718611b7765722ee92b6bfda7313a918285 (diff)
downloadbcm5719-llvm-00245539b6426f2cb9eca1a418fb1437b5295dcc.tar.gz
bcm5719-llvm-00245539b6426f2cb9eca1a418fb1437b5295dcc.zip
[WebAssembly] Rename GlobalSymbol types. NFC.
Purely a rename in preparation for adding new global symbol type. We want to use GlobalSymbol to represent real wasm globals and DataSymbol for pointers to things in linear memory (what ELF would call STT_OBJECT). This reduces the size the patch to add the explicit symbol table which is coming soon! Differential Revision: https://reviews.llvm.org/D43476 llvm-svn: 325645
Diffstat (limited to 'lld/wasm/MarkLive.cpp')
-rw-r--r--lld/wasm/MarkLive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/wasm/MarkLive.cpp b/lld/wasm/MarkLive.cpp
index 1e00ca04ea2..dbeccee7652 100644
--- a/lld/wasm/MarkLive.cpp
+++ b/lld/wasm/MarkLive.cpp
@@ -83,7 +83,7 @@ void lld::wasm::markLive() {
case R_WEBASSEMBLY_MEMORY_ADDR_LEB:
case R_WEBASSEMBLY_MEMORY_ADDR_SLEB:
case R_WEBASSEMBLY_MEMORY_ADDR_I32:
- Enqueue(C->File->getGlobalSymbol(Reloc.Index));
+ Enqueue(C->File->getDataSymbol(Reloc.Index));
break;
}
}
OpenPOWER on IntegriCloud