Always write 1 bit integers as i1 not "bool".

llvm-svn: 33115
This commit is contained in:
Reid Spencer 2007-01-12 07:25:20 +00:00
parent a557a0028d
commit c87215900d
1 changed files with 1 additions and 5 deletions

View File

@ -268,11 +268,7 @@ static void calcTypeName(const Type *Ty,
switch (Ty->getTypeID()) {
case Type::IntegerTyID: {
unsigned BitWidth = cast<IntegerType>(Ty)->getBitWidth();
if (BitWidth == 1)
Result += "bool";
else {
Result += "i" + utostr(BitWidth);
}
Result += "i" + utostr(BitWidth);
break;
}
case Type::FunctionTyID: {