aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/BinaryFormat/Wasm.cpp
diff options
context:
space:
mode:
authorPaulo Matos <pmatos@linki.tools>2020-10-13 07:13:10 -0700
committerSam Clegg <sbc@chromium.org>2020-10-13 07:52:23 -0700
commit388fb67b0dd7f41630ab6c3400c96843852319af (patch)
treea6112bdbd46ee04adc7f68afe0387d8113867d3a /llvm/lib/BinaryFormat/Wasm.cpp
parenta8f1790fdb8ce1c53f024870cd51f32724d4c55f (diff)
downloadllvm-388fb67b0dd7f41630ab6c3400c96843852319af.zip
llvm-388fb67b0dd7f41630ab6c3400c96843852319af.tar.gz
llvm-388fb67b0dd7f41630ab6c3400c96843852319af.tar.bz2
[WebAssembly] Added .tabletype to asm and multiple table support in obj files
Adds more testing in basic-assembly.s and a new test tables.s. Adds support to yaml reading and writing of tables as well. Differential Revision: https://reviews.llvm.org/D88815
Diffstat (limited to 'llvm/lib/BinaryFormat/Wasm.cpp')
-rw-r--r--llvm/lib/BinaryFormat/Wasm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/BinaryFormat/Wasm.cpp b/llvm/lib/BinaryFormat/Wasm.cpp
index 8860816..19dce2b 100644
--- a/llvm/lib/BinaryFormat/Wasm.cpp
+++ b/llvm/lib/BinaryFormat/Wasm.cpp
@@ -14,6 +14,8 @@ std::string llvm::wasm::toString(wasm::WasmSymbolType Type) {
return "WASM_SYMBOL_TYPE_FUNCTION";
case wasm::WASM_SYMBOL_TYPE_GLOBAL:
return "WASM_SYMBOL_TYPE_GLOBAL";
+ case wasm::WASM_SYMBOL_TYPE_TABLE:
+ return "WASM_SYMBOL_TYPE_TABLE";
case wasm::WASM_SYMBOL_TYPE_DATA:
return "WASM_SYMBOL_TYPE_DATA";
case wasm::WASM_SYMBOL_TYPE_SECTION: