mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
Remove the local subtarget variable from the SystemZ asm printer
and update the two calls accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229805 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9a6b4219e2
commit
4a48ec9281
@ -186,7 +186,7 @@ void SystemZAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
||||
#undef LOWER_HIGH
|
||||
|
||||
case SystemZ::Serialize:
|
||||
if (Subtarget->hasFastSerialization())
|
||||
if (MF->getSubtarget<SystemZSubtarget>().hasFastSerialization())
|
||||
LoweredMI = MCInstBuilder(SystemZ::AsmBCR)
|
||||
.addImm(14).addReg(SystemZ::R0D);
|
||||
else
|
||||
@ -256,7 +256,7 @@ bool SystemZAsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI,
|
||||
}
|
||||
|
||||
void SystemZAsmPrinter::EmitEndOfAsmFile(Module &M) {
|
||||
if (Subtarget->isTargetELF()) {
|
||||
if (Triple(TM.getTargetTriple()).isOSBinFormatELF()) {
|
||||
auto &TLOFELF =
|
||||
static_cast<const TargetLoweringObjectFileELF &>(getObjFileLowering());
|
||||
|
||||
|
@ -22,14 +22,9 @@ class Module;
|
||||
class raw_ostream;
|
||||
|
||||
class LLVM_LIBRARY_VISIBILITY SystemZAsmPrinter : public AsmPrinter {
|
||||
private:
|
||||
const SystemZSubtarget *Subtarget;
|
||||
|
||||
public:
|
||||
SystemZAsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer)
|
||||
: AsmPrinter(TM, std::move(Streamer)) {
|
||||
Subtarget = &TM.getSubtarget<SystemZSubtarget>();
|
||||
}
|
||||
: AsmPrinter(TM, std::move(Streamer)) {}
|
||||
|
||||
// Override AsmPrinter.
|
||||
const char *getPassName() const override {
|
||||
|
Loading…
x
Reference in New Issue
Block a user