[all-commits] [llvm/llvm-project] ef1f99: [Object][Wasm] Move WasmSymbolInfo directly into W...

Derek Schuff via All-commits all-commits at lists.llvm.org
Fri Feb 2 10:45:04 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef1f999e13bd58394bc1099c87a470d91682153d
      https://github.com/llvm/llvm-project/commit/ef1f999e13bd58394bc1099c87a470d91682153d
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2024-02-02 (Fri, 02 Feb 2024)

  Changed paths:
    M lld/wasm/InputFiles.cpp
    M llvm/include/llvm/BinaryFormat/Wasm.h
    M llvm/include/llvm/Object/Wasm.h
    M llvm/lib/Object/WasmObjectFile.cpp
    M llvm/tools/obj2yaml/wasm2yaml.cpp

  Log Message:
  -----------
  [Object][Wasm] Move WasmSymbolInfo directly into WasmSymbol (NFC) (#80219)

Move the WasmSymbolInfos from their own vector on the WasmLinkingData
directly into the WasmSymbol object. Removing the const-ref to an
external object allows the vector of WasmSymbols to be safely
expanded/reallocated; generating symbol info from the name section will
require this, as the numbers of function and data segment names are
stored separately.

This is a step toward generating symbol information from name sections
for #76107




More information about the All-commits mailing list