forked from OSchip/llvm-project
Always write 1 bit integers as i1 not "bool".
llvm-svn: 33115
This commit is contained in:
parent
a557a0028d
commit
c87215900d
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue