mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
[mips] Remove trivial header for the MipsModuleISelDAGToDAG pass. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232260 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -8,40 +8,35 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "MipsISelDAGToDAG.h"
|
||||
#include "MipsModuleISelDAGToDAG.h"
|
||||
#include "Mips.h"
|
||||
#include "MipsTargetMachine.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "mips-isel"
|
||||
|
||||
namespace {
|
||||
//===----------------------------------------------------------------------===//
|
||||
// MipsModuleDAGToDAGISel - MIPS specific code to select MIPS machine
|
||||
// instructions for SelectionDAG operations.
|
||||
//===----------------------------------------------------------------------===//
|
||||
class MipsModuleDAGToDAGISel : public MachineFunctionPass {
|
||||
public:
|
||||
class MipsModuleDAGToDAGISel : public MachineFunctionPass {
|
||||
public:
|
||||
static char ID;
|
||||
|
||||
static char ID;
|
||||
|
||||
explicit MipsModuleDAGToDAGISel(MipsTargetMachine &TM_)
|
||||
explicit MipsModuleDAGToDAGISel(MipsTargetMachine &TM_)
|
||||
: MachineFunctionPass(ID), TM(TM_) {}
|
||||
|
||||
// Pass Name
|
||||
const char *getPassName() const override {
|
||||
return "MIPS DAG->DAG Pattern Instruction Selection";
|
||||
}
|
||||
// Pass Name
|
||||
const char *getPassName() const override {
|
||||
return "MIPS DAG->DAG Pattern Instruction Selection";
|
||||
}
|
||||
|
||||
bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
|
||||
protected:
|
||||
MipsTargetMachine &TM;
|
||||
};
|
||||
} // namespace
|
||||
protected:
|
||||
MipsTargetMachine &TM;
|
||||
};
|
||||
|
||||
char MipsModuleDAGToDAGISel::ID = 0;
|
||||
}
|
||||
|
||||
bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
|
||||
DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
|
||||
@@ -49,10 +44,6 @@ bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
|
||||
return false;
|
||||
}
|
||||
|
||||
char MipsModuleDAGToDAGISel::ID = 0;
|
||||
|
||||
llvm::FunctionPass *llvm::createMipsModuleISelDag(MipsTargetMachine &TM) {
|
||||
llvm::FunctionPass *llvm::createMipsModuleISelDagPass(MipsTargetMachine &TM) {
|
||||
return new MipsModuleDAGToDAGISel(TM);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user