Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.272.2.2 -> 1.272.2.3
---
Log message:

Committing Remainder of Div -> SDiv/UDiv changes so the tree builds again.


---
Diffs of the changes:  (+6 -3)

 Writer.cpp |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.272.2.2 
llvm/lib/Target/CBackend/Writer.cpp:1.272.2.3
--- llvm/lib/Target/CBackend/Writer.cpp:1.272.2.2       Thu Oct 19 19:34:44 2006
+++ llvm/lib/Target/CBackend/Writer.cpp Fri Oct 20 03:19:49 2006
@@ -586,7 +586,8 @@
     case Instruction::Add:
     case Instruction::Sub:
     case Instruction::Mul:
-    case Instruction::Div:
+    case Instruction::SDiv:
+    case Instruction::UDiv:
     case Instruction::Rem:
     case Instruction::And:
     case Instruction::Or:
@@ -605,7 +606,8 @@
       case Instruction::Add: Out << " + "; break;
       case Instruction::Sub: Out << " - "; break;
       case Instruction::Mul: Out << " * "; break;
-      case Instruction::Div: Out << " / "; break;
+      case Instruction::UDiv: 
+      case Instruction::SDiv: Out << " / "; break;
       case Instruction::Rem: Out << " % "; break;
       case Instruction::And: Out << " & "; break;
       case Instruction::Or:  Out << " | "; break;
@@ -1648,7 +1650,8 @@
     case Instruction::Add: Out << " + "; break;
     case Instruction::Sub: Out << " - "; break;
     case Instruction::Mul: Out << '*'; break;
-    case Instruction::Div: Out << '/'; break;
+    case Instruction::UDiv:
+    case Instruction::SDiv: Out << '/'; break;
     case Instruction::Rem: Out << '%'; break;
     case Instruction::And: Out << " & "; break;
     case Instruction::Or: Out << " | "; break;



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to