Fix a FIXME. 1 bit integer types are now printed as i1 not bool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-01-13 01:09:33 +00:00
parent 54a525d7ae
commit a1fed2d1c0

View File

@ -218,10 +218,7 @@ static std::string getTypeDescription(const Type *Ty,
switch (Ty->getTypeID()) {
case Type::IntegerTyID: {
const IntegerType *ITy = cast<IntegerType>(Ty);
if (ITy->getBitWidth() == 1)
Result = "bool"; // FIXME: eventually this becomes i1
else
Result = "i" + utostr(ITy->getBitWidth());
Result = "i" + utostr(ITy->getBitWidth());
break;
}
case Type::FunctionTyID: {