[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Reid Spencer
reid at x10sys.com
Thu Jan 11 10:22:21 PST 2007
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.217 -> 1.218
---
Log message:
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
---
Diffs of the changes: (+3 -3)
Reader.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.217 llvm/lib/Bytecode/Reader/Reader.cpp:1.218
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.217 Thu Jan 11 06:24:13 2007
+++ llvm/lib/Bytecode/Reader/Reader.cpp Thu Jan 11 12:21:28 2007
@@ -684,7 +684,7 @@
case Instruction::Select:
if (Oprnds.size() != 3)
error("Invalid Select instruction!");
- Result = new SelectInst(getValue(Type::BoolTyID, Oprnds[0]),
+ Result = new SelectInst(getValue(Type::Int1TyID, Oprnds[0]),
getValue(iType, Oprnds[1]),
getValue(iType, Oprnds[2]));
break;
@@ -730,7 +730,7 @@
Result = new BranchInst(getBasicBlock(Oprnds[0]));
else if (Oprnds.size() == 3)
Result = new BranchInst(getBasicBlock(Oprnds[0]),
- getBasicBlock(Oprnds[1]), getValue(Type::BoolTyID , Oprnds[2]));
+ getBasicBlock(Oprnds[1]), getValue(Type::Int1TyID , Oprnds[2]));
else
error("Invalid number of operands for a 'br' instruction!");
break;
@@ -1399,7 +1399,7 @@
const Type *Ty = getType(TypeID);
Constant *Result = 0;
switch (Ty->getTypeID()) {
- case Type::BoolTyID: {
+ case Type::Int1TyID: {
unsigned Val = read_vbr_uint();
if (Val != 0 && Val != 1)
error("Invalid boolean value read.");
More information about the llvm-commits
mailing list