mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155902 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -68,7 +68,7 @@ TargetPassConfig *MBlazeTargetMachine::createPassConfig(PassManagerBase &PM) {
|
||||
// Install an instruction selector pass using
|
||||
// the ISelDag to gen MBlaze code.
|
||||
bool MBlazePassConfig::addInstSelector() {
|
||||
PM.add(createMBlazeISelDag(getMBlazeTargetMachine()));
|
||||
PM->add(createMBlazeISelDag(getMBlazeTargetMachine()));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -76,6 +76,6 @@ bool MBlazePassConfig::addInstSelector() {
|
||||
// machine code is emitted. return true if -print-machineinstrs should
|
||||
// print out the code after the passes.
|
||||
bool MBlazePassConfig::addPreEmitPass() {
|
||||
PM.add(createMBlazeDelaySlotFillerPass(getMBlazeTargetMachine()));
|
||||
PM->add(createMBlazeDelaySlotFillerPass(getMBlazeTargetMachine()));
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user