diff options
-rw-r--r-- | tools/edis/EDInst.cpp | 4 | ||||
-rw-r--r-- | tools/llvm-mc/Disassembler.cpp | 5 |
2 files changed, 8 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; } diff --git a/tools/llvm-mc/Disassembler.cpp b/tools/llvm-mc/Disassembler.cpp index e2120c25d3..37b2cb8056 100644 --- a/tools/llvm-mc/Disassembler.cpp +++ b/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); |