From 6667e5429608b5a0d55850b980ae433deda0e5f2 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 22 Aug 2011 23:41:41 +0000 Subject: [PATCH] Add an MCInstrAnalysis version of isCall. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138305 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCInstrAnalysis.h | 4 ++++ 1 file changed, 4 insertions(+) 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(); }