diff options
author | Thomas Lively <tlively@google.com> | 2019-02-19 22:56:19 +0000 |
---|---|---|
committer | Thomas Lively <tlively@google.com> | 2019-02-19 22:56:19 +0000 |
commit | 2e1504091e2b6e949290b4792224c4b833acda99 (patch) | |
tree | b579df67b6a3b560a5520fea45f235e069588e3b /llvm/lib/MC/MCSectionWasm.cpp | |
parent | 8eade092497e17ad1cfbb1a7c3d9156686b229cc (diff) | |
download | bcm5719-llvm-2e1504091e2b6e949290b4792224c4b833acda99.tar.gz bcm5719-llvm-2e1504091e2b6e949290b4792224c4b833acda99.zip |
[WebAssembly] Update MC for bulk memory
Summary:
Rename MemoryIndex to InitFlags and implement logic for determining
data segment layout in ObjectYAML and MC. Also adds a "passive" flag
for the .section assembler directive although this cannot be assembled
yet because the assembler does not support data sections.
Reviewers: sbc100, aardappel, aheejin, dschuff
Subscribers: jgravelle-google, hiraditya, sunfish, rupprecht, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D57938
llvm-svn: 354397
Diffstat (limited to 'llvm/lib/MC/MCSectionWasm.cpp')
-rw-r--r-- | llvm/lib/MC/MCSectionWasm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCSectionWasm.cpp b/llvm/lib/MC/MCSectionWasm.cpp index 164ded9a1f8..8633c10a73f 100644 --- a/llvm/lib/MC/MCSectionWasm.cpp +++ b/llvm/lib/MC/MCSectionWasm.cpp @@ -62,7 +62,8 @@ void MCSectionWasm::PrintSwitchToSection(const MCAsmInfo &MAI, const Triple &T, printName(OS, getSectionName()); OS << ",\""; - // TODO: Print section flags. + if (IsPassive) + OS << "passive"; OS << '"'; |