summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WasmObjectWriter.cpp
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2019-03-04 17:18:04 +0000
committerWouter van Oortmerssen <aardappel@gmail.com>2019-03-04 17:18:04 +0000
commitf3feb6adb919770f7ad4888ecb3a5c15076e5bf6 (patch)
tree07d7f20e8baa412aabf78b4aaa5503b6d8007fc9 /llvm/lib/MC/WasmObjectWriter.cpp
parentde11105d2ece076e9d8dcfb01286643e81af8922 (diff)
downloadbcm5719-llvm-f3feb6adb919770f7ad4888ecb3a5c15076e5bf6.tar.gz
bcm5719-llvm-f3feb6adb919770f7ad4888ecb3a5c15076e5bf6.zip
[WebAssembly] Add support for data sections in the assembler.
Summary: This is quite minimal so far, introduce them with .section, fill them with .int8 or .asciz, end with .size Reviewers: dschuff, sbc100, aheejin Subscribers: jgravelle-google, sunfish, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D58660 llvm-svn: 355321
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WasmObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp
index b985d4bf4d3..e82ed5898b4 100644
--- a/llvm/lib/MC/WasmObjectWriter.cpp
+++ b/llvm/lib/MC/WasmObjectWriter.cpp
@@ -1348,7 +1348,7 @@ uint64_t WasmObjectWriter::writeObject(MCAssembler &Asm,
LLVM_DEBUG(dbgs() << " -> function index: " << Index << "\n");
} else if (WS.isData()) {
- if (WS.isTemporary() && !WS.getSize())
+ if (!isInSymtab(WS))
continue;
if (!WS.isDefined()) {
OpenPOWER on IntegriCloud