[PATCH] D59173: [WebAssembly][WIP] Target features section
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 14:15:50 PDT 2019
sbc100 added inline comments.
================
Comment at: llvm/include/llvm/BinaryFormat/Wasm.h:262
+// Feature policy prefixes used in the custom "target_features" section
+enum : uint8_t {
+ WASM_FEATURE_PREFIX_USED = '+',
----------------
char?
================
Comment at: llvm/lib/Object/WasmObjectFile.cpp:677
Error WasmObjectFile::parseProducersSection(ReadContext &Ctx) {
- llvm::SmallSet<StringRef, 3> FieldsSeen;
+ llvm::SmallSet<std::string, 3> FieldsSeen;
uint32_t Fields = readVaruint32(Ctx);
----------------
Why this?
================
Comment at: llvm/lib/Object/WasmObjectFile.cpp:1600
+int WasmSectionOrderChecker::DisallowedPredecessors
+ [WASM_NUM_SEC_ORDERS][WASM_NUM_SEC_ORDERS] = {
+ {}, // WASM_SEC_ORDER_NONE
----------------
This formatting looks worse IMHO. Skip clang-format here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59173/new/
https://reviews.llvm.org/D59173
More information about the llvm-commits
mailing list