1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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
This commit is contained in:
Sean Callanan 2010-05-11 01:27:08 +00:00
parent 5311f25b0b
commit e79322802a
2 changed files with 8 additions and 1 deletions

View File

@ -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;
}

View File

@ -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);