Always write 1 bit integers as i1 not "bool".
authorReid Spencer <rspencer@reidspencer.com>
Fri, 12 Jan 2007 07:25:20 +0000 (07:25 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 12 Jan 2007 07:25:20 +0000 (07:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33115 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 4730c3166b43b04bdd96ae67c0d7003ebe516c3c..89240fca2c05e80537ba1f1ebc3d376ba82ad5a2 100644 (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: {