mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
don't bother setting the AsmPrinter::MF ivar, now that
AsmPrinter::SetupMachineFunction sets it. Note that systemz and msp430 didn't. Yay for reduced inconsistency! :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -241,8 +241,6 @@ namespace {
|
|||||||
/// method to print assembly for each instruction.
|
/// method to print assembly for each instruction.
|
||||||
///
|
///
|
||||||
bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
this->MF = &MF;
|
|
||||||
|
|
||||||
AFI = MF.getInfo<ARMFunctionInfo>();
|
AFI = MF.getInfo<ARMFunctionInfo>();
|
||||||
MCP = MF.getConstantPool();
|
MCP = MF.getConstantPool();
|
||||||
|
|
||||||
@ -938,7 +936,6 @@ void ARMAsmPrinter::printJTBlockOperand(const MachineInstr *MI, int OpNum) {
|
|||||||
|
|
||||||
const char *JTEntryDirective = MAI->getData32bitsDirective();
|
const char *JTEntryDirective = MAI->getData32bitsDirective();
|
||||||
|
|
||||||
const MachineFunction *MF = MI->getParent()->getParent();
|
|
||||||
const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
|
const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
|
||||||
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
|
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
|
||||||
const std::vector<MachineBasicBlock*> &JTBBs = JT[JTI].MBBs;
|
const std::vector<MachineBasicBlock*> &JTBBs = JT[JTI].MBBs;
|
||||||
@ -975,7 +972,6 @@ void ARMAsmPrinter::printJT2BlockOperand(const MachineInstr *MI, int OpNum) {
|
|||||||
MCSymbol *JTISymbol = GetARMJTIPICJumpTableLabel2(JTI, MO2.getImm());
|
MCSymbol *JTISymbol = GetARMJTIPICJumpTableLabel2(JTI, MO2.getImm());
|
||||||
OutStreamer.EmitLabel(JTISymbol);
|
OutStreamer.EmitLabel(JTISymbol);
|
||||||
|
|
||||||
const MachineFunction *MF = MI->getParent()->getParent();
|
|
||||||
const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
|
const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
|
||||||
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
|
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
|
||||||
const std::vector<MachineBasicBlock*> &JTBBs = JT[JTI].MBBs;
|
const std::vector<MachineBasicBlock*> &JTBBs = JT[JTI].MBBs;
|
||||||
|
@ -124,8 +124,6 @@ void AlphaAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
|
|||||||
/// method to print assembly for each instruction.
|
/// method to print assembly for each instruction.
|
||||||
///
|
///
|
||||||
bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
this->MF = &MF;
|
|
||||||
|
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
O << "\n\n";
|
O << "\n\n";
|
||||||
|
|
||||||
|
@ -403,8 +403,6 @@ void SPUAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
|
|||||||
/// method to print assembly for each instruction.
|
/// method to print assembly for each instruction.
|
||||||
///
|
///
|
||||||
bool LinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool LinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
this->MF = &MF;
|
|
||||||
|
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
O << "\n\n";
|
O << "\n\n";
|
||||||
|
|
||||||
|
@ -248,8 +248,6 @@ void MipsAsmPrinter::emitFunctionEnd(MachineFunction &MF) {
|
|||||||
/// runOnMachineFunction - This uses the printMachineInstruction()
|
/// runOnMachineFunction - This uses the printMachineInstruction()
|
||||||
/// method to print assembly for each instruction.
|
/// method to print assembly for each instruction.
|
||||||
bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
this->MF = &MF;
|
|
||||||
|
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
|
|
||||||
// Print out constants referenced by the function
|
// Print out constants referenced by the function
|
||||||
|
@ -96,8 +96,6 @@ void PIC16AsmPrinter::ColorAutoSection(const Function *F) {
|
|||||||
/// directive and file begin debug directive (if required) for the function.
|
/// directive and file begin debug directive (if required) for the function.
|
||||||
///
|
///
|
||||||
bool PIC16AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool PIC16AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
this->MF = &MF;
|
|
||||||
|
|
||||||
// This calls the base class function required to be called at beginning
|
// This calls the base class function required to be called at beginning
|
||||||
// of runOnMachineFunction.
|
// of runOnMachineFunction.
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
|
@ -598,8 +598,6 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
|
|||||||
/// method to print assembly for each instruction.
|
/// method to print assembly for each instruction.
|
||||||
///
|
///
|
||||||
bool PPCLinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool PPCLinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
this->MF = &MF;
|
|
||||||
|
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
O << "\n\n";
|
O << "\n\n";
|
||||||
|
|
||||||
@ -701,8 +699,6 @@ bool PPCLinuxAsmPrinter::doFinalization(Module &M) {
|
|||||||
/// method to print assembly for each instruction.
|
/// method to print assembly for each instruction.
|
||||||
///
|
///
|
||||||
bool PPCDarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool PPCDarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
this->MF = &MF;
|
|
||||||
|
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
O << "\n\n";
|
O << "\n\n";
|
||||||
|
|
||||||
|
@ -85,8 +85,6 @@ namespace {
|
|||||||
/// method to print assembly for each instruction.
|
/// method to print assembly for each instruction.
|
||||||
///
|
///
|
||||||
bool SparcAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool SparcAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
this->MF = &MF;
|
|
||||||
|
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
|
|
||||||
// Print out constants referenced by the function
|
// Print out constants referenced by the function
|
||||||
|
@ -137,7 +137,6 @@ void X86AsmPrinter::emitFunctionHeader(const MachineFunction &MF) {
|
|||||||
///
|
///
|
||||||
bool X86AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
bool X86AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
const Function *F = MF.getFunction();
|
const Function *F = MF.getFunction();
|
||||||
this->MF = &MF;
|
|
||||||
CallingConv::ID CC = F->getCallingConv();
|
CallingConv::ID CC = F->getCallingConv();
|
||||||
|
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
|
@ -231,10 +231,7 @@ void XCoreAsmPrinter::emitFunctionEnd(MachineFunction &MF) {
|
|||||||
/// runOnMachineFunction - This uses the printMachineInstruction()
|
/// runOnMachineFunction - This uses the printMachineInstruction()
|
||||||
/// method to print assembly for each instruction.
|
/// method to print assembly for each instruction.
|
||||||
///
|
///
|
||||||
bool XCoreAsmPrinter::runOnMachineFunction(MachineFunction &MF)
|
bool XCoreAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
{
|
|
||||||
this->MF = &MF;
|
|
||||||
|
|
||||||
SetupMachineFunction(MF);
|
SetupMachineFunction(MF);
|
||||||
|
|
||||||
// Print out constants referenced by the function
|
// Print out constants referenced by the function
|
||||||
|
Reference in New Issue
Block a user