projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e77d10d
)
Always write 1 bit integers as i1 not "bool".
author
Reid Spencer
<rspencer@reidspencer.com>
Fri, 12 Jan 2007 07:25:20 +0000
(07:25 +0000)
committer
Reid 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
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index 4730c3166b43b04bdd96ae67c0d7003ebe516c3c..89240fca2c05e80537ba1f1ebc3d376ba82ad5a2 100644
(file)
--- 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<IntegerType>(Ty)->getBitWidth();
- if (BitWidth == 1)
- Result += "bool";
- else {
- Result += "i" + utostr(BitWidth);
- }
+ Result += "i" + utostr(BitWidth);
break;
}
case Type::FunctionTyID: {