mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[SystemZ] Add disassembler support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -114,10 +114,26 @@ void SystemZInstPrinter::printAccessRegOperand(const MCInst *MI, int OpNum,
|
||||
O << "%a" << (unsigned int)Value;
|
||||
}
|
||||
|
||||
void SystemZInstPrinter::printPCRelOperand(const MCInst *MI, int OpNum,
|
||||
raw_ostream &O) {
|
||||
const MCOperand &MO = MI->getOperand(OpNum);
|
||||
if (MO.isImm()) {
|
||||
O << "0x";
|
||||
O.write_hex(MO.getImm());
|
||||
} else
|
||||
O << *MO.getExpr();
|
||||
}
|
||||
|
||||
void SystemZInstPrinter::printCallOperand(const MCInst *MI, int OpNum,
|
||||
raw_ostream &O) {
|
||||
printOperand(MI, OpNum, O);
|
||||
O << "@PLT";
|
||||
const MCOperand &MO = MI->getOperand(OpNum);
|
||||
if (MO.isImm()) {
|
||||
O << "0x";
|
||||
O.write_hex(MO.getImm());
|
||||
} else {
|
||||
O << *MO.getExpr();
|
||||
O << "@PLT";
|
||||
}
|
||||
}
|
||||
|
||||
void SystemZInstPrinter::printOperand(const MCInst *MI, int OpNum,
|
||||
|
Reference in New Issue
Block a user