aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-13 01:09:33 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-13 01:09:33 +0000
commita1fed2d1c0494e4fe460582c62213facfbaaf78a (patch)
tree2c60dd484c9ad2bb68b10201375761516b187f87
parent54a525d7ae4ce36780d840cfec075d4080f0764a (diff)
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
-rw-r--r--lib/VMCore/Type.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index e03d9a7887..d172dce95b 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -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: {