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

llvm-svn: 33176
This commit is contained in:
Reid Spencer 2007-01-13 01:09:33 +00:00
parent ff7434a526
commit 91d93de25e
1 changed files with 1 additions and 4 deletions

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