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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-01-12 07:25:20 +00:00
parent e77d10df41
commit 15ee935fc5

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: {