forked from OSchip/llvm-project
Initialize all common codegen passes before configuration so we can use their PassIDs.
llvm-svn: 149705
This commit is contained in:
parent
a8a8ac5d47
commit
99d316098e
|
@ -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…
Reference in New Issue