summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-15 18:08:07 +0000
committerChris Lattner <sabre@nondot.org>2003-01-15 18:08:07 +0000
commit8128936c33cfca9f523eaee6cb888419dfd2f345 (patch)
tree8c55ed5f8744c4e17c9ea1ca3110e2a42915f789 /llvm/lib/CodeGen
parente4dd971fb364628b794a7083f7aef637ef3c5979 (diff)
downloadbcm5719-llvm-8128936c33cfca9f523eaee6cb888419dfd2f345.tar.gz
bcm5719-llvm-8128936c33cfca9f523eaee6cb888419dfd2f345.zip
Use buildmi not MI ctor directly
llvm-svn: 5293
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
index 94db3dc165a..2290dc49026 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -8,7 +8,7 @@
#include "llvm/CodeGen/RegAllocCommon.h"
#include "llvm/CodeGen/IGNode.h"
#include "llvm/CodeGen/PhyRegAlloc.h"
-#include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineInstrAnnot.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionInfo.h"
@@ -578,8 +578,7 @@ void PhyRegAlloc::updateMachineCode() {
// needs spill code inserted before or after it.
// Move it before the preceding branch.
InsertBefore(MInst, MBB, --MII);
- MachineInstr* nopI =
- new MachineInstr(TM.getInstrInfo().getNOPOpCode());
+ MachineInstr* nopI = BuildMI(TM.getInstrInfo().getNOPOpCode(),1);
SubstituteInPlace(nopI, MBB, MII+1); // replace orig with NOP
--MII; // point to MInst in new location
bumpIteratorBy = 2; // later skip the branch and the NOP!
OpenPOWER on IntegriCloud