[llvm-commits] CVS: llvm/examples/HowToUseJIT/HowToUseJIT.cpp
Reid Spencer
reid at x10sys.com
Fri Oct 20 00:08:35 PDT 2006
Changes in directory llvm/examples/HowToUseJIT:
HowToUseJIT.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)
HowToUseJIT.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/examples/HowToUseJIT/HowToUseJIT.cpp
diff -u llvm/examples/HowToUseJIT/HowToUseJIT.cpp:1.11 llvm/examples/HowToUseJIT/HowToUseJIT.cpp:1.12
--- llvm/examples/HowToUseJIT/HowToUseJIT.cpp:1.11 Thu Mar 23 21:11:31 2006
+++ llvm/examples/HowToUseJIT/HowToUseJIT.cpp Fri Oct 20 02:07:23 2006
@@ -60,7 +60,7 @@
BasicBlock *BB = new BasicBlock("EntryBlock", Add1F);
// Get pointers to the constant `1'.
- Value *One = ConstantSInt::get(Type::IntTy, 1);
+ Value *One = ConstantInt::get(Type::IntTy, 1);
// Get pointers to the integer argument of the add1 function...
assert(Add1F->arg_begin() != Add1F->arg_end()); // Make sure there's an arg
@@ -84,7 +84,7 @@
BB = new BasicBlock("EntryBlock", FooF);
// Get pointers to the constant `10'.
- Value *Ten = ConstantSInt::get(Type::IntTy, 10);
+ Value *Ten = ConstantInt::get(Type::IntTy, 10);
// Pass Ten to the call call:
std::vector<Value*> Params;
More information about the llvm-commits
mailing list