mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Add machine independant printer interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4729 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dbb61c6445
commit
9bca50d6dd
@ -94,6 +94,12 @@ public:
|
|||||||
return desc[opCode];
|
return desc[opCode];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// print - Print out the specified machine instruction in the appropriate
|
||||||
|
/// target specific assembly language. If this method is not overridden, the
|
||||||
|
/// default implementation uses the crummy machine independant printer.
|
||||||
|
///
|
||||||
|
virtual void print(const MachineInstr *MI, std::ostream &O) const;
|
||||||
|
|
||||||
const char *getName(MachineOpCode opCode) const {
|
const char *getName(MachineOpCode opCode) const {
|
||||||
return get(opCode).Name;
|
return get(opCode).Name;
|
||||||
}
|
}
|
||||||
|
@ -94,6 +94,12 @@ public:
|
|||||||
return desc[opCode];
|
return desc[opCode];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// print - Print out the specified machine instruction in the appropriate
|
||||||
|
/// target specific assembly language. If this method is not overridden, the
|
||||||
|
/// default implementation uses the crummy machine independant printer.
|
||||||
|
///
|
||||||
|
virtual void print(const MachineInstr *MI, std::ostream &O) const;
|
||||||
|
|
||||||
const char *getName(MachineOpCode opCode) const {
|
const char *getName(MachineOpCode opCode) const {
|
||||||
return get(opCode).Name;
|
return get(opCode).Name;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user