[llvm-commits] [llvm] r138305 - /llvm/trunk/include/llvm/MC/MCInstrAnalysis.h

Benjamin Kramer benny.kra at googlemail.com
Mon Aug 22 16:41:41 PDT 2011


Author: d0k
Date: Mon Aug 22 18:41:41 2011
New Revision: 138305

URL: http://llvm.org/viewvc/llvm-project?rev=138305&view=rev
Log:
Add an MCInstrAnalysis version of isCall.

Modified:
    llvm/trunk/include/llvm/MC/MCInstrAnalysis.h

Modified: llvm/trunk/include/llvm/MC/MCInstrAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCInstrAnalysis.h?rev=138305&r1=138304&r2=138305&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCInstrAnalysis.h (original)
+++ llvm/trunk/include/llvm/MC/MCInstrAnalysis.h Mon Aug 22 18:41:41 2011
@@ -43,6 +43,10 @@
     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();
   }





More information about the llvm-commits mailing list