HomePhabricator

[llvm-profgen] Add switch to allow use of first loadable segment for…

Authored by wenlei on Nov 11 2021, 6:28 PM.

Description

[llvm-profgen] Add switch to allow use of first loadable segment for calculating offset

Adding -use-loadable-segment-as-base to allow use of first loadable segment for calculating offset. By default first executable segment is used for calculating offset. The switch helps compatibility with unsymbolized profile generated from older tools.

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