From 15ee935fc52b2e68a294631aac0c84ea4ba72509 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 12 Jan 2007 07:25:20 +0000 Subject: [PATCH] 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 --- lib/VMCore/AsmWriter.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 4730c3166b4..89240fca2c0 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -268,11 +268,7 @@ static void calcTypeName(const Type *Ty, switch (Ty->getTypeID()) { case Type::IntegerTyID: { unsigned BitWidth = cast(Ty)->getBitWidth(); - if (BitWidth == 1) - Result += "bool"; - else { - Result += "i" + utostr(BitWidth); - } + Result += "i" + utostr(BitWidth); break; } case Type::FunctionTyID: {