Skip to content

Commit abfbac2

Browse files
committed
update comment
Created using spr 1.3.4
1 parent 144687c commit abfbac2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bolt/lib/Core/BinaryFunctionCallGraph.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ buildCallGraph(BinaryContext &BC, CgFilterFunction Filter, bool CgFromPerfData,
252252

253253
for (MCInst &Inst : *BB) {
254254
// Find call instructions and extract target symbols from each one.
255+
// Check CallProfile annotation if the instruction is not recognized
256+
// as a call, e.g. unknown control flow indirect jump.
255257
if (BC.MIB->isCall(Inst) ||
256258
BC.MIB->hasAnnotation(Inst, "CallProfile")) {
257259
const CallInfoTy CallInfo = getCallInfo(BB, Inst);

0 commit comments

Comments
 (0)