[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp
Reid Spencer
reid at x10sys.com
Thu Jan 11 10:22:22 PST 2007
Changes in directory llvm/lib/ExecutionEngine/JIT:
JIT.cpp updated: 1.86 -> 1.87
---
Log message:
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
---
Diffs of the changes: (+3 -3)
JIT.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.86 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.87
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.86 Thu Jan 11 06:24:14 2007
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp Thu Jan 11 12:21:29 2007
@@ -142,8 +142,8 @@
GenericValue rv;
switch (RetTy->getTypeID()) {
default: assert(0 && "Unknown return type for function call!");
- case Type::BoolTyID:
- rv.BoolVal = ((bool(*)())(intptr_t)FPtr)();
+ case Type::Int1TyID:
+ rv.Int1Val = ((bool(*)())(intptr_t)FPtr)();
return rv;
case Type::Int8TyID:
rv.Int8Val = ((char(*)())(intptr_t)FPtr)();
@@ -191,7 +191,7 @@
const GenericValue &AV = ArgValues[i];
switch (ArgTy->getTypeID()) {
default: assert(0 && "Unknown argument type for function call!");
- case Type::BoolTyID: C = ConstantInt::get(AV.BoolVal); break;
+ case Type::Int1TyID: C = ConstantInt::get(AV.Int1Val); break;
case Type::Int8TyID: C = ConstantInt::get(ArgTy, AV.Int8Val); break;
case Type::Int16TyID: C = ConstantInt::get(ArgTy, AV.Int16Val); break;
case Type::Int32TyID: C = ConstantInt::get(ArgTy, AV.Int32Val); break;
More information about the llvm-commits
mailing list