mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
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
This commit is contained in:
parent
e77d10df41
commit
15ee935fc5
@ -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…
x
Reference in New Issue
Block a user