Fix a FIXME. 1 bit integer types are now printed as i1 not bool.
authorReid Spencer <rspencer@reidspencer.com>
Sat, 13 Jan 2007 01:09:33 +0000 (01:09 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 13 Jan 2007 01:09:33 +0000 (01:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33176 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Type.cpp

index e03d9a788714c6f9e3538c503415eab294a421f4..d172dce95b94caa0122244e515f9f4dfca694dda 100644 (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: {