[llvm-commits] CVS: llvm/examples/Fibonacci/fibonacci.cpp

Reid Spencer reid at x10sys.com
Fri Oct 20 00:08:35 PDT 2006



Changes in directory llvm/examples/Fibonacci:

fibonacci.cpp updated: 1.11 -> 1.12
---
Log message:

For PR950: http://llvm.org/PR950 :
This patch implements the first increment for the Signless Types feature.
All changes pertain to removing the ConstantSInt and ConstantUInt classes
in favor of just using ConstantInt.


---
Diffs of the changes:  (+2 -2)

 fibonacci.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/examples/Fibonacci/fibonacci.cpp
diff -u llvm/examples/Fibonacci/fibonacci.cpp:1.11 llvm/examples/Fibonacci/fibonacci.cpp:1.12
--- llvm/examples/Fibonacci/fibonacci.cpp:1.11	Thu Mar 23 21:11:31 2006
+++ llvm/examples/Fibonacci/fibonacci.cpp	Fri Oct 20 02:07:23 2006
@@ -45,8 +45,8 @@
   BasicBlock *BB = new BasicBlock("EntryBlock", FibF);
 
   // Get pointers to the constants.
-  Value *One = ConstantSInt::get(Type::IntTy, 1);
-  Value *Two = ConstantSInt::get(Type::IntTy, 2);
+  Value *One = ConstantInt::get(Type::IntTy, 1);
+  Value *Two = ConstantInt::get(Type::IntTy, 2);
 
   // Get pointer to the integer argument of the add1 function...
   Argument *ArgX = FibF->arg_begin();   // Get the arg.






More information about the llvm-commits mailing list