diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-05-01 08:27:43 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-05-01 08:27:43 +0000 |
commit | 7c4ce30ea6a9d0410f306e805403dd224c3df65c (patch) | |
tree | a66a2957e7618e50dea4bf61484fc4efa03a9a08 /lib/Target/MBlaze | |
parent | c80e7d2ea46589c5e42e09081a079392f6fbf041 (diff) | |
download | llvm-7c4ce30ea6a9d0410f306e805403dd224c3df65c.tar.gz llvm-7c4ce30ea6a9d0410f306e805403dd224c3df65c.tar.bz2 llvm-7c4ce30ea6a9d0410f306e805403dd224c3df65c.tar.xz |
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
Diffstat (limited to 'lib/Target/MBlaze')
-rw-r--r-- | lib/Target/MBlaze/MBlazeTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/MBlaze/MBlazeTargetMachine.cpp b/lib/Target/MBlaze/MBlazeTargetMachine.cpp index dd7de9bff3..62393d0920 100644 --- a/lib/Target/MBlaze/MBlazeTargetMachine.cpp +++ b/lib/Target/MBlaze/MBlazeTargetMachine.cpp @@ -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; } |