[llvm-commits] CVS: llvm/examples/ModuleMaker/ModuleMaker.cpp
Reid Spencer
reid at x10sys.com
Fri Oct 20 00:08:35 PDT 2006
Changes in directory llvm/examples/ModuleMaker:
ModuleMaker.cpp updated: 1.8 -> 1.9
---
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)
ModuleMaker.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/examples/ModuleMaker/ModuleMaker.cpp
diff -u llvm/examples/ModuleMaker/ModuleMaker.cpp:1.8 llvm/examples/ModuleMaker/ModuleMaker.cpp:1.9
--- llvm/examples/ModuleMaker/ModuleMaker.cpp:1.8 Fri Jul 28 17:08:23 2006
+++ llvm/examples/ModuleMaker/ModuleMaker.cpp Fri Oct 20 02:07:23 2006
@@ -40,8 +40,8 @@
BasicBlock *BB = new BasicBlock("EntryBlock", F);
// Get pointers to the constant integers...
- Value *Two = ConstantSInt::get(Type::IntTy, 2);
- Value *Three = ConstantSInt::get(Type::IntTy, 3);
+ Value *Two = ConstantInt::get(Type::IntTy, 2);
+ Value *Three = ConstantInt::get(Type::IntTy, 3);
// Create the add instruction... does not insert...
Instruction *Add = BinaryOperator::create(Instruction::Add, Two, Three,
More information about the llvm-commits
mailing list