Added phi elimination code

llvm-svn: 1265
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
index 266d424..533d74c 100644
--- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
+++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
@@ -943,11 +943,12 @@
 }
 
 
-void
+
+void UltraSparcInstrInfo::
 CreateCopyInstructionsByType(const TargetMachine& target,
                              Value* src,
                              Instruction* dest,
-                             vector<MachineInstr*>& minstrVec)
+                             vector<MachineInstr*>& minstrVec) const
 {
   bool loadConstantToReg = false;
   
@@ -1004,6 +1005,7 @@
 }
 
 
+
 //******************* Externally Visible Functions *************************/
 
 
@@ -2048,7 +2050,7 @@
       else
         {
           vector<MachineInstr*> minstrVec;
-          CreateCopyInstructionsByType(target,
+          target.getInstrInfo().CreateCopyInstructionsByType(target,
                 subtreeRoot->getInstruction()->getOperand(forwardOperandNum),
                 subtreeRoot->getInstruction(), minstrVec);
           assert(minstrVec.size() > 0);