From 972bf8dea1001134f575a1c6362e1c12eed579d0 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Tue, 11 May 2010 01:27:08 +0000 Subject: Extended the edis "IsBranch" property to call instructions as well. Added support for checking this to the llvm-mc tester as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103454 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/edis/EDInst.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/edis') diff --git a/tools/edis/EDInst.cpp b/tools/edis/EDInst.cpp index af3a54abbc..c009f0f868 100644 --- a/tools/edis/EDInst.cpp +++ b/tools/edis/EDInst.cpp @@ -81,7 +81,9 @@ unsigned EDInst::instID() { bool EDInst::isBranch() { if (ThisInstInfo) - return ThisInstInfo->instructionType == kInstructionTypeBranch; + return + ThisInstInfo->instructionType == kInstructionTypeBranch || + ThisInstInfo->instructionType == kInstructionTypeCall; else return false; } -- cgit v1.2.3