TargetInstrInfo::getNOPOpCode() has been replaced by a reference to V9::NOP.
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 27 Jul 2004 17:43:24 +0000 (17:43 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 27 Jul 2004 17:43:24 +0000 (17:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15279 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
lib/Target/SparcV9/SparcV9PeepholeOpts.cpp

index 6aebcb5f8417d0da076611fe6b46bf76a457f6f1..26424ef7e107985fcf207051bc840e2b813bf736 100644 (file)
@@ -26,6 +26,7 @@
 #include "RegAllocCommon.h"
 #include "RegClass.h"
 #include "../LiveVar/FunctionLiveVarInfo.h"
+#include "../SparcV9InstrInfo.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/iPHINode.h"
@@ -550,7 +551,7 @@ void PhyRegAlloc::updateMachineCode()
               // instruction out of the delay slot). On cond2 we need
               // to insert a nop in place of the moved instruction
               if (cond2) {
-                MBB.insert(MII, BuildMI(TM.getInstrInfo()->getNOPOpCode(),1));
+                MBB.insert(MII, BuildMI(V9::NOP, 1));
               }
             }
           else {
index d80a543b476c9495755d6547619f4f3d6d8ccc99..0b7baabb8d34cbe90cb1599c655851f8238eb935 100644 (file)
@@ -39,7 +39,7 @@ DeleteInstruction(MachineBasicBlock& mvec,
         // to update the I-I maps.
         // 
         assert(ndelay == 1 && "Not yet handling multiple-delay-slot targets");
-        BBI->replace(mii.getNOPOpCode(), 0);
+        BBI->replace(V9::NOP, 0);
         return;
       }
   }