[all-commits] [llvm/llvm-project] 6693c5: [llvm-profgen] Support to load debug info from a s...

ictwanglei via All-commits all-commits at lists.llvm.org
Mon Jan 24 17:14:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6693c562f90925dd5214d86875a6f82ca5c6ef93
      https://github.com/llvm/llvm-project/commit/6693c562f90925dd5214d86875a6f82ca5c6ef93
  Author: wlei <wlei at fb.com>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    A llvm/test/tools/llvm-profgen/separate-debuginfo-binary.test
    M llvm/tools/llvm-profgen/ProfiledBinary.cpp
    M llvm/tools/llvm-profgen/ProfiledBinary.h
    M llvm/tools/llvm-profgen/llvm-profgen.cpp

  Log Message:
  -----------
  [llvm-profgen] Support to load debug info from a second binary

For reducing binary size purpose, the binary's debug info and executable segment can be separated(like using objcopy --only-keep-debug). Here add support in llvm-profgen to use two binaries as input. The original one is executable binary and added for debug info only binary. Adding a flag `--debug-binary=file-path`, with this, the binary will load debug info from debug binary.

Reviewed By: hoy, wenlei

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




More information about the All-commits mailing list