mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-20 09:24:58 +00:00
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -684,7 +684,7 @@ void BytecodeReader::ParseInstruction(std::vector<unsigned> &Oprnds,
|
||||
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 @@ void BytecodeReader::ParseInstruction(std::vector<unsigned> &Oprnds,
|
||||
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 @@ Value *BytecodeReader::ParseConstantPoolValue(unsigned TypeID) {
|
||||
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.");
|
||||
|
Reference in New Issue
Block a user