1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Add an MCInstrAnalysis version of isCall.

llvm-svn: 138305
This commit is contained in:
Benjamin Kramer 2011-08-22 23:41:41 +00:00
parent 9aa40e0f7c
commit 48f01f6a77

View File

@ -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();
}