summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorGulfem Savrun Yeniceri <gulfem@google.com>2021-12-15 21:51:33 +0000
committerGulfem Savrun Yeniceri <gulfem@google.com>2021-12-27 19:20:19 +0000
commitf261e258ecc0fc5b8e8a70dbe45752d1bb3c2d69 (patch)
treea003aa19b93c456c9881df13e995ed26c4f2f658 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent773ab3c6655f4d2beec25bb3516b4d4fe2eea990 (diff)
[profile] Fix writing binary id into profiles
This patch adds support to read all the PT_NOTE segments in the executable to find the binary ids. Previously, it was only reading the first PT_NOTE segment, and this was missing the cases where binary id is in the following segments. As a result, binary-id.c and binary-id-padding.c test were failing in the following cases: 1) sanitizer-x86_64-linux bot https://lab.llvm.org/staging/#/builders/97 2) OpenSuse Tumbleweed https://github.com/llvm/llvm-project/issues/52695 Differential Revision: https://reviews.llvm.org/D115830
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions