diff --git a/include/llvm/MC/MCInstrAnalysis.h b/include/llvm/MC/MCInstrAnalysis.h index 36584ef49ac..464768313b9 100644 --- a/include/llvm/MC/MCInstrAnalysis.h +++ b/include/llvm/MC/MCInstrAnalysis.h @@ -43,6 +43,10 @@ public: return Info->get(Inst.getOpcode()).isIndirectBranch(); } + virtual bool isCall(const MCInst &Inst) const { + return Info->get(Inst.getOpcode()).isCall(); + } + virtual bool isReturn(const MCInst &Inst) const { return Info->get(Inst.getOpcode()).isReturn(); }