[all-commits] [llvm/llvm-project] a205f2: [WebAssembly] Consolidate sectionTypeToString in B...

Derek Schuff via All-commits all-commits at lists.llvm.org
Fri May 27 09:28:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a205f2904d0ae4e3c6ce73b6e0a0aff29e46bd96
      https://github.com/llvm/llvm-project/commit/a205f2904d0ae4e3c6ce73b6e0a0aff29e46bd96
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2022-05-27 (Fri, 27 May 2022)

  Changed paths:
    M lld/wasm/OutputSections.cpp
    M llvm/include/llvm/BinaryFormat/Wasm.h
    M llvm/lib/BinaryFormat/Wasm.cpp
    M llvm/lib/Object/WasmObjectFile.cpp

  Log Message:
  -----------
  [WebAssembly] Consolidate sectionTypeToString in BinaryFormat [NFC]

Currently there are 2 duplicate implementation, and I want to add
a use in a 3rd place. Combine them in lib/BinaryFormat so they can
be shared.

Also update toString for symbol and reloc types to use StringRef

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




More information about the All-commits mailing list