Change the PassManager from a reference to a pointer.
The TargetPassManager's default constructor wants to initialize the PassManager to 'null'. But it's illegal to bind a null reference to a null l-value. Make the ivar a pointer instead. PR12468 llvm-svn: 155902
This commit is contained in:
@@ -59,7 +59,7 @@ TargetPassConfig *SparcTargetMachine::createPassConfig(PassManagerBase &PM) {
|
||||
}
|
||||
|
||||
bool SparcPassConfig::addInstSelector() {
|
||||
PM.add(createSparcISelDag(getSparcTargetMachine()));
|
||||
PM->add(createSparcISelDag(getSparcTargetMachine()));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -67,8 +67,8 @@ bool SparcPassConfig::addInstSelector() {
|
||||
/// passes immediately before machine code is emitted. This should return
|
||||
/// true if -print-machineinstrs should print out the code after the passes.
|
||||
bool SparcPassConfig::addPreEmitPass(){
|
||||
PM.add(createSparcFPMoverPass(getSparcTargetMachine()));
|
||||
PM.add(createSparcDelaySlotFillerPass(getSparcTargetMachine()));
|
||||
PM->add(createSparcFPMoverPass(getSparcTargetMachine()));
|
||||
PM->add(createSparcDelaySlotFillerPass(getSparcTargetMachine()));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user