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 | d7f09c7851f7fe548e05ad1c33997b19626d9348 (patch) | |
| tree | 7e92992421d484213253bf764a393b0c4cd212f3 | |
| parent | e276c183858c3adae86de58486fcb97146869d5c (diff) | |
| download | bcm5719-llvm-d7f09c7851f7fe548e05ad1c33997b19626d9348.tar.gz bcm5719-llvm-d7f09c7851f7fe548e05ad1c33997b19626d9348.zip | |
Extended the edis "IsBranch" property to call
instructions as well. Added support for checking
this to the llvm-mc tester as well.
llvm-svn: 103454
| -rw-r--r-- | llvm/tools/edis/EDInst.cpp | 4 | ||||
| -rw-r--r-- | llvm/tools/llvm-mc/Disassembler.cpp | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/llvm/tools/edis/EDInst.cpp b/llvm/tools/edis/EDInst.cpp index af3a54abbcf..c009f0f8687 100644 --- a/llvm/tools/edis/EDInst.cpp +++ b/llvm/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; } diff --git a/llvm/tools/llvm-mc/Disassembler.cpp b/llvm/tools/llvm-mc/Disassembler.cpp index e2120c25d3a..37b2cb80563 100644 --- a/llvm/tools/llvm-mc/Disassembler.cpp +++ b/llvm/tools/llvm-mc/Disassembler.cpp @@ -314,6 +314,11 @@ int Disassembler::disassembleEnhanced(const std::string &TS, } outs() << " "; + + if (EDInstIsBranch(inst)) + outs() << "<br> "; + if (EDInstIsMove(inst)) + outs() << "<mov> "; int numOperands = EDNumOperands(inst); |

