diff options
author | Sam Clegg <sbc@chromium.org> | 2018-04-26 18:15:32 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-04-26 18:15:32 +0000 |
commit | 6bb5a41f99445a9c067a699028d0d62a89953d12 (patch) | |
tree | 59de67347939a02dae85848660ca40e08469b216 /llvm/lib/ObjectYAML/WasmYAML.cpp | |
parent | b31f91897966d6f14c50ac22de8f8a15bcfc0812 (diff) | |
download | bcm5719-llvm-6bb5a41f99445a9c067a699028d0d62a89953d12.tar.gz bcm5719-llvm-6bb5a41f99445a9c067a699028d0d62a89953d12.zip |
[WebAssembly] Add version to object file metadata
Summary: See https://github.com/WebAssembly/tool-conventions/issues/54
Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D46069
llvm-svn: 330969
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 72df93b876a..ff75bfc7676 100644 --- a/llvm/lib/ObjectYAML/WasmYAML.cpp +++ b/llvm/lib/ObjectYAML/WasmYAML.cpp @@ -57,6 +57,7 @@ static void sectionMapping(IO &IO, WasmYAML::NameSection &Section) { static void sectionMapping(IO &IO, WasmYAML::LinkingSection &Section) { commonSectionMapping(IO, Section); IO.mapRequired("Name", Section.Name); + IO.mapRequired("Version", Section.Version); IO.mapOptional("SymbolTable", Section.SymbolTable); IO.mapOptional("SegmentInfo", Section.SegmentInfos); IO.mapOptional("InitFunctions", Section.InitFunctions); |