mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +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:
parent
36b7beb429
commit
f1f78d5266
@ -42,8 +42,7 @@ protected:
|
||||
|
||||
public:
|
||||
TargetPassConfig(TargetMachine *tm, PassManagerBase &pm,
|
||||
bool DisableVerifyFlag)
|
||||
: TM(tm), PM(pm), DisableVerify(DisableVerifyFlag) {}
|
||||
bool DisableVerifyFlag);
|
||||
|
||||
virtual ~TargetPassConfig() {}
|
||||
|
||||
|
@ -125,6 +125,13 @@ LLVMTargetMachine::LLVMTargetMachine(const Target &T, StringRef Triple,
|
||||
"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
|
||||
/// addPassToEmitX methods for generating a pipeline of CodeGen passes.
|
||||
TargetPassConfig *LLVMTargetMachine::createPassConfig(PassManagerBase &PM,
|
||||
|
Loading…
x
Reference in New Issue
Block a user