Skip to content

Commit 9d76fb3

Browse files
committed
[BOLT] Fix naming
- CouldCall -> CallTarget - CouldJump -> JumpTarget
1 parent f26be06 commit 9d76fb3

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ class MCPlusBuilder {
18641864
}
18651865

18661866
/// Create a BTI landing pad instruction.
1867-
virtual void createBTI(MCInst &Inst, bool CouldCall, bool CouldJump) const {
1867+
virtual void createBTI(MCInst &Inst, bool CallTarget, bool JumpTarget) const {
18681868
llvm_unreachable("not implemented");
18691869
}
18701870

bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,9 +2748,10 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
27482748
return Insts;
27492749
}
27502750

2751-
void createBTI(MCInst &Inst, bool CouldCall, bool CouldJump) const override {
2751+
void createBTI(MCInst &Inst, bool CallTarget,
2752+
bool JumpTarget) const override {
27522753
Inst.setOpcode(AArch64::HINT);
2753-
unsigned HintNum = getBTIHintNum(CouldCall, CouldJump);
2754+
unsigned HintNum = getBTIHintNum(CallTarget, JumpTarget);
27542755
Inst.addOperand(MCOperand::createImm(HintNum));
27552756
}
27562757

llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -987,11 +987,11 @@ AArch64StringToPACKeyID(StringRef Name) {
987987
return std::nullopt;
988988
}
989989

990-
inline static unsigned getBTIHintNum(bool CouldCall, bool CouldJump) {
990+
inline static unsigned getBTIHintNum(bool CallTarget, bool JumpTarget) {
991991
unsigned HintNum = 32;
992-
if (CouldCall)
992+
if (CallTarget)
993993
HintNum |= 2;
994-
if (CouldJump)
994+
if (JumpTarget)
995995
HintNum |= 4;
996996
assert(HintNum != 32 && "No target kinds!");
997997
return HintNum;

0 commit comments

Comments
 (0)