mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 02:22:29 +00:00
Initialize all common codegen passes before configuration so we can use their PassIDs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149705 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,8 +42,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
TargetPassConfig(TargetMachine *tm, PassManagerBase &pm,
|
TargetPassConfig(TargetMachine *tm, PassManagerBase &pm,
|
||||||
bool DisableVerifyFlag)
|
bool DisableVerifyFlag);
|
||||||
: TM(tm), PM(pm), DisableVerify(DisableVerifyFlag) {}
|
|
||||||
|
|
||||||
virtual ~TargetPassConfig() {}
|
virtual ~TargetPassConfig() {}
|
||||||
|
|
||||||
|
|||||||
@@ -125,6 +125,13 @@ LLVMTargetMachine::LLVMTargetMachine(const Target &T, StringRef Triple,
|
|||||||
"and that InitializeAllTargetMCs() is being invoked!");
|
"and that InitializeAllTargetMCs() is being invoked!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TargetPassConfig::TargetPassConfig(TargetMachine *tm, PassManagerBase &pm,
|
||||||
|
bool DisableVerifyFlag)
|
||||||
|
: TM(tm), PM(pm), DisableVerify(DisableVerifyFlag) {
|
||||||
|
// Register all target independent codegen passes to activate their PassIDs.
|
||||||
|
initializeCodeGen(*PassRegistry::getPassRegistry());
|
||||||
|
}
|
||||||
|
|
||||||
/// createPassConfig - Create a pass configuration object to be used by
|
/// createPassConfig - Create a pass configuration object to be used by
|
||||||
/// addPassToEmitX methods for generating a pipeline of CodeGen passes.
|
/// addPassToEmitX methods for generating a pipeline of CodeGen passes.
|
||||||
TargetPassConfig *LLVMTargetMachine::createPassConfig(PassManagerBase &PM,
|
TargetPassConfig *LLVMTargetMachine::createPassConfig(PassManagerBase &PM,
|
||||||
|
|||||||
Reference in New Issue
Block a user