mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
TargetPassConfig: confine the MC configuration to TargetMachine.
Passes prior to instructon selection are now split into separate configurable stages. Header dependencies are simplified. The bulk of this diff is simply removal of the silly DisableVerify flags. Sorry for the target header churn. Attempting to stabilize them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149754 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,9 +42,8 @@ namespace {
|
||||
/// MSP430 Code Generator Pass Configuration Options.
|
||||
class MSP430PassConfig : public TargetPassConfig {
|
||||
public:
|
||||
MSP430PassConfig(MSP430TargetMachine *TM, PassManagerBase &PM,
|
||||
bool DisableVerifyFlag)
|
||||
: TargetPassConfig(TM, PM, DisableVerifyFlag) {}
|
||||
MSP430PassConfig(MSP430TargetMachine *TM, PassManagerBase &PM)
|
||||
: TargetPassConfig(TM, PM) {}
|
||||
|
||||
MSP430TargetMachine &getMSP430TargetMachine() const {
|
||||
return getTM<MSP430TargetMachine>();
|
||||
@@ -55,9 +54,8 @@ public:
|
||||
};
|
||||
} // namespace
|
||||
|
||||
TargetPassConfig *MSP430TargetMachine::createPassConfig(PassManagerBase &PM,
|
||||
bool DisableVerify) {
|
||||
return new MSP430PassConfig(this, PM, DisableVerify);
|
||||
TargetPassConfig *MSP430TargetMachine::createPassConfig(PassManagerBase &PM) {
|
||||
return new MSP430PassConfig(this, PM);
|
||||
}
|
||||
|
||||
bool MSP430PassConfig::addInstSelector() {
|
||||
|
@@ -62,8 +62,7 @@ public:
|
||||
return &TSInfo;
|
||||
}
|
||||
|
||||
virtual TargetPassConfig *createPassConfig(PassManagerBase &PM,
|
||||
bool DisableVerify);
|
||||
virtual TargetPassConfig *createPassConfig(PassManagerBase &PM);
|
||||
}; // MSP430TargetMachine.
|
||||
|
||||
} // end namespace llvm
|
||||
|
Reference in New Issue
Block a user