[all-commits] [llvm/llvm-project] 1379a7: [XCOFF][OBJECT] get symbol size by calling XCOFF i...

Chen Zheng via All-commits all-commits at lists.llvm.org
Wed Oct 11 20:16:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1379a7286e156af2d96cb0f3d8aa8e5c7f56bccd
      https://github.com/llvm/llvm-project/commit/1379a7286e156af2d96cb0f3d8aa8e5c7f56bccd
  Author: Chen Zheng <czhengsz at cn.ibm.com>
  Date:   2023-10-12 (Thu, 12 Oct 2023)

  Changed paths:
    M llvm/include/llvm/Object/XCOFFObjectFile.h
    M llvm/lib/Object/SymbolSize.cpp
    M llvm/lib/Object/XCOFFObjectFile.cpp
    M llvm/test/DebugInfo/Symbolize/XCOFF/xcoff-symbolize-data.ll

  Log Message:
  -----------
  [XCOFF][OBJECT] get symbol size by calling XCOFF interfaces (#67304)

Computing the symbol size as the gap between sorted symbols are not
right for XCOFF.

For XCOFF, the size info is stored in aux symbol and can be got from
existing XCOFF interface `getSymbolSize()`.
This patch changes XCOFFObjectFile to call this API to get sizes for
symbols.




More information about the All-commits mailing list