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:
parent
5311f25b0b
commit
e79322802a
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user