[BOLT] Track fragment info for all split fragments
authorFabian Parzefall <parzefall@fb.com>
Wed, 24 Aug 2022 17:03:01 +0000 (10:03 -0700)
committerFabian Parzefall <parzefall@fb.com>
Wed, 24 Aug 2022 17:17:17 +0000 (10:17 -0700)
commit7e254818e49454a53bd00e3737007025b62d0f79
treee58db083c1779666eaff964d27a88354d216e6c3
parent101344af1af82d1633c773b718788eaa813d7f79
[BOLT] Track fragment info for all split fragments

To generate all symbols correctly, it is necessary to record the address
of each fragment. This patch moves the address info for the main and
cold fragments from BinaryFunction to FunctionFragment, where this data
is recorded for all fragments.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D132051
bolt/include/bolt/Core/BinaryFunction.h
bolt/include/bolt/Core/FunctionLayout.h
bolt/lib/Core/BinaryFunction.cpp
bolt/lib/Core/FunctionLayout.cpp
bolt/lib/Profile/BoltAddressTranslation.cpp
bolt/lib/Rewrite/RewriteInstance.cpp