[BOLT][NFC] Fix debug messages
authorAmir Ayupov <aaupov@fb.com>
Tue, 6 Jun 2023 22:49:00 +0000 (15:49 -0700)
committerAmir Ayupov <aaupov@fb.com>
Tue, 6 Jun 2023 22:50:58 +0000 (15:50 -0700)
commit713b28532e9fe44ee42aa3515df44e3ca4c40b90
tree818c83f12e1846e412fd7d62cb3599dd14882911
parenta10019a496d420769d7aae94f234ab6cf9fd778d
[BOLT][NFC] Fix debug messages

Fix debug printing, making it easier to compare two debug logs side by side:
- `BinaryFunction::addRelocation`: print function name instead of `this` ptr,
- `DataAggregator::doTrace`: remove duplicated function name.

Reviewed By: #bolt, maksfb

Differential Revision: https://reviews.llvm.org/D152314
bolt/lib/Core/BinaryFunction.cpp
bolt/lib/Profile/DataAggregator.cpp