mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Minor, non-functionality changing, formatting fix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -992,20 +992,20 @@ ConstVal: Types '[' ConstVector ']' { // Nonempty unsized arr
|
|||||||
delete $1;
|
delete $1;
|
||||||
};
|
};
|
||||||
|
|
||||||
ConstVal : SIntType EINT64VAL { // integral constants
|
ConstVal : SIntType EINT64VAL { // integral constants
|
||||||
if (!ConstantSInt::isValueValidForType($1, $2))
|
if (!ConstantSInt::isValueValidForType($1, $2))
|
||||||
ThrowException("Constant value doesn't fit in type!");
|
ThrowException("Constant value doesn't fit in type!");
|
||||||
$$ = ConstantSInt::get($1, $2);
|
$$ = ConstantSInt::get($1, $2);
|
||||||
}
|
}
|
||||||
| UIntType EUINT64VAL { // integral constants
|
| UIntType EUINT64VAL { // integral constants
|
||||||
if (!ConstantUInt::isValueValidForType($1, $2))
|
if (!ConstantUInt::isValueValidForType($1, $2))
|
||||||
ThrowException("Constant value doesn't fit in type!");
|
ThrowException("Constant value doesn't fit in type!");
|
||||||
$$ = ConstantUInt::get($1, $2);
|
$$ = ConstantUInt::get($1, $2);
|
||||||
}
|
}
|
||||||
| BOOL TRUE { // Boolean constants
|
| BOOL TRUE { // Boolean constants
|
||||||
$$ = ConstantBool::True;
|
$$ = ConstantBool::True;
|
||||||
}
|
}
|
||||||
| BOOL FALSE { // Boolean constants
|
| BOOL FALSE { // Boolean constants
|
||||||
$$ = ConstantBool::False;
|
$$ = ConstantBool::False;
|
||||||
}
|
}
|
||||||
| FPType FPVAL { // Float & Double constants
|
| FPType FPVAL { // Float & Double constants
|
||||||
|
Reference in New Issue
Block a user