summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/BinaryFormat/Wasm.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-01-16 23:46:14 +0000
committerThomas Lively <tlively@google.com>2019-01-16 23:46:14 +0000
commita56c23c5ba561126f64488fbda0566fc92c26e58 (patch)
tree33176c5c495f6c9e88bdd6c4dd68bae8dac3d080 /llvm/include/llvm/BinaryFormat/Wasm.h
parentc7700127ae79dec3b6fe0c1773824da56352e194 (diff)
downloadbcm5719-llvm-a56c23c5ba561126f64488fbda0566fc92c26e58.tar.gz
bcm5719-llvm-a56c23c5ba561126f64488fbda0566fc92c26e58.zip
[WebAssembly] Parse llvm.ident into producers section
Summary: Everything before the word "version" is the tool, and everything after the word "version" is the version. Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D56742 llvm-svn: 351399
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r--llvm/include/llvm/BinaryFormat/Wasm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h
index d9f0f94b298..05439c60872 100644
--- a/llvm/include/llvm/BinaryFormat/Wasm.h
+++ b/llvm/include/llvm/BinaryFormat/Wasm.h
@@ -43,6 +43,12 @@ struct WasmDylinkInfo {
std::vector<StringRef> Needed; // Shared library depenedencies
};
+struct WasmProducerInfo {
+ std::vector<std::pair<std::string, std::string>> Languages;
+ std::vector<std::pair<std::string, std::string>> Tools;
+ std::vector<std::pair<std::string, std::string>> SDKs;
+};
+
struct WasmExport {
StringRef Name;
uint8_t Kind;
OpenPOWER on IntegriCloud