diff options
author | Sean Callanan <scallanan@apple.com> | 2010-05-11 01:27:08 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2010-05-11 01:27:08 +0000 |
commit | 972bf8dea1001134f575a1c6362e1c12eed579d0 (patch) | |
tree | 82a34538e33eeaf6e66b6655d4e5371aec4b6ecd /tools/edis | |
parent | 0ce537a9db2da085ab50b15d2454cb7cac460eb7 (diff) |
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
Diffstat (limited to 'tools/edis')
-rw-r--r-- | tools/edis/EDInst.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |