diff options
author | Derek Schuff <dschuff@google.com> | 2018-11-06 17:27:25 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2018-11-06 17:27:25 +0000 |
commit | 6881806241ed994bf973fb3773ec05afbe3c71fb (patch) | |
tree | 185fd4572a4958244795399f1a85718ca4028290 /llvm/lib/ObjectYAML/WasmYAML.cpp | |
parent | 724014addef9416cbc525b9be6ce7eda8e803834 (diff) | |
download | bcm5719-llvm-6881806241ed994bf973fb3773ec05afbe3c71fb.tar.gz bcm5719-llvm-6881806241ed994bf973fb3773ec05afbe3c71fb.zip |
[WebAssembly] Add shared memory support to limits field
Support the IS_SHARED bit in the memory limits flag word.
The compiler does not create object files with memory definitions,
but the field is used by the linker.
Differential Revision: https://reviews.llvm.org/D54131
llvm-svn: 346246
Diffstat (limited to 'llvm/lib/ObjectYAML/WasmYAML.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/WasmYAML.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/WasmYAML.cpp b/llvm/lib/ObjectYAML/WasmYAML.cpp index 2e7a1d6f653..dba950af589 100644 --- a/llvm/lib/ObjectYAML/WasmYAML.cpp +++ b/llvm/lib/ObjectYAML/WasmYAML.cpp @@ -416,6 +416,7 @@ void ScalarBitSetTraits<WasmYAML::LimitFlags>::bitset( IO &IO, WasmYAML::LimitFlags &Value) { #define BCase(X) IO.bitSetCase(Value, #X, wasm::WASM_LIMITS_FLAG_##X) BCase(HAS_MAX); + BCase(IS_SHARED); #undef BCase } |