aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/obj2yaml/wasm2yaml.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-01-31 19:50:14 +0000
committerSam Clegg <sbc@chromium.org>2018-01-31 19:50:14 +0000
commit6e7f1826c58932c0e987d8eca5b9055439161b13 (patch)
tree026cc7c2042402c331710cb6d709d92011b1c15b /llvm/tools/obj2yaml/wasm2yaml.cpp
parentf9edbe95db69e851c2bed712318f43b45de31ddd (diff)
downloadllvm-6e7f1826c58932c0e987d8eca5b9055439161b13.zip
llvm-6e7f1826c58932c0e987d8eca5b9055439161b13.tar.gz
llvm-6e7f1826c58932c0e987d8eca5b9055439161b13.tar.bz2
[WebAssembly] MC: Remove unused code for handling of wasm globals
For now, we are not using wasm globals, except for modeling of the stack points. Alos, factor out common struct WasmGlobalType, which matches the name for that tuple in the Wasm spec and rename methods to "isBindingGlobal", "isTypeGlobal" to avoid ambiguity. Patch by Nicholas Wilson! Differential Revision: https://reviews.llvm.org/D42750 llvm-svn: 323901
Diffstat (limited to 'llvm/tools/obj2yaml/wasm2yaml.cpp')
-rw-r--r--llvm/tools/obj2yaml/wasm2yaml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/obj2yaml/wasm2yaml.cpp b/llvm/tools/obj2yaml/wasm2yaml.cpp
index 7ec344a..210ae68 100644
--- a/llvm/tools/obj2yaml/wasm2yaml.cpp
+++ b/llvm/tools/obj2yaml/wasm2yaml.cpp
@@ -201,8 +201,8 @@ ErrorOr<WasmYAML::Object *> WasmDumper::dump() {
for (auto &Global : Obj.globals()) {
WasmYAML::Global G;
G.Index = Global.Index;
- G.Type = Global.Type;
- G.Mutable = Global.Mutable;
+ G.Type = Global.Type.Type;
+ G.Mutable = Global.Type.Mutable;
G.InitExpr = Global.InitExpr;
GlobalSec->Globals.push_back(G);
}