mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-13 21:05:16 +00:00
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
This commit is contained in:
parent
0ce537a9db
commit
972bf8dea1
@ -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