[all-commits] [llvm/llvm-project] 2ae385: [WebAssembly] Add WASM_SEC_LAST_KNOWN to BinaryFor...

Derek Schuff via All-commits all-commits at lists.llvm.org
Tue Jun 7 12:07:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ae385e560a62a18942cbc202cd19313c6c59470
      https://github.com/llvm/llvm-project/commit/2ae385e560a62a18942cbc202cd19313c6c59470
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2022-06-07 (Tue, 07 Jun 2022)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/wasm/ObjectFileWasm.cpp
    M llvm/include/llvm/BinaryFormat/Wasm.h
    M llvm/lib/ObjCopy/wasm/WasmReader.cpp
    M llvm/lib/Object/WasmObjectFile.cpp

  Log Message:
  -----------
  [WebAssembly] Add WASM_SEC_LAST_KNOWN to BinaryFormat section types list [NFC]

There are 3 places where we were using WASM_SEC_TAG as the "last" known
section type, which requires updating (or leaves a bug) when a new known
section type is added. Instead add a "last type" to the enum for this
purpose.

Differential Revision: https://reviews.llvm.org/D127164




More information about the All-commits mailing list