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

Reid Spencer reid at x10sys.com
Wed Oct 18 20:58:58 PDT 2006



Changes in directory llvm/examples/Fibonacci:

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

For PR950: http://llvm.org/PR950 :
This commit (on SignlessTypes branch) provides the first Iteration for 
moving LLVM away from Signed types. This patch removes the ConstantSInt
and ConstantUInt classes from Type.h and makes all necessary changes in
LLVM to compensate.


---
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.11.6.1
--- llvm/examples/Fibonacci/fibonacci.cpp:1.11	Thu Mar 23 21:11:31 2006
+++ llvm/examples/Fibonacci/fibonacci.cpp	Wed Oct 18 22:57:55 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