[PATCH] D43924: [WebAssembly] Remove StackPointerGlobal member variable from the driver.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 5 12:40:45 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL329337: [WebAssembly] Remove StackPointerGlobal member variable from the driver. (authored by ruiu, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D43924?vs=136457&id=141201#toc
Repository:
rL LLVM
https://reviews.llvm.org/D43924
Files:
lld/trunk/wasm/Driver.cpp
Index: lld/trunk/wasm/Driver.cpp
===================================================================
--- lld/trunk/wasm/Driver.cpp
+++ lld/trunk/wasm/Driver.cpp
@@ -57,7 +57,6 @@
void addFile(StringRef Path);
void addLibrary(StringRef Name);
std::vector<InputFile *> Files;
- llvm::wasm::WasmGlobal StackPointerGlobal;
};
} // anonymous namespace
@@ -336,10 +335,11 @@
// globals aren't yet supported in the official binary format.
// TODO(sbc): Remove WASM_SYMBOL_VISIBILITY_HIDDEN if/when the
// "mutable global" proposal is accepted.
- StackPointerGlobal.Type = {WASM_TYPE_I32, true};
- StackPointerGlobal.InitExpr.Value.Int32 = 0;
- StackPointerGlobal.InitExpr.Opcode = WASM_OPCODE_I32_CONST;
- InputGlobal *StackPointer = make<InputGlobal>(StackPointerGlobal);
+ llvm::wasm::WasmGlobal Global;
+ Global.Type = {WASM_TYPE_I32, true};
+ Global.InitExpr.Value.Int32 = 0;
+ Global.InitExpr.Opcode = WASM_OPCODE_I32_CONST;
+ InputGlobal *StackPointer = make<InputGlobal>(Global);
StackPointer->Live = true;
static WasmSignature NullSignature = {{}, WASM_TYPE_NORESULT};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43924.141201.patch
Type: text/x-patch
Size: 1138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180405/fb2020d9/attachment.bin>
More information about the llvm-commits
mailing list