Skip to content

Commit 5b7f1c1

Browse files
committed
BOLT: Replace deprecated MCFixupKindInfo::FKF_IsPCRel with MCFixup::isPCRel
MCFixup::PCRel is now set at creation and the MCFixupKindInfo::FKF_IsPCRel flag is no longer set.
1 parent 3c5d03a commit 5b7f1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2557,7 +2557,7 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
25572557
else if (Fixup.getKind() ==
25582558
MCFixupKind(AArch64::fixup_aarch64_pcrel_branch26))
25592559
RelType = ELF::R_AARCH64_JUMP26;
2560-
else if (FKI.Flags & MCFixupKindInfo::FKF_IsPCRel) {
2560+
else if (Fixup.isPCRel()) {
25612561
switch (FKI.TargetSize) {
25622562
default:
25632563
return std::nullopt;

0 commit comments

Comments
 (0)