mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
- Renamed Type::isIntegral() to Type::isInteger()
- Added new method Type::isIntegral() that is the same as isInteger, but also accepts bool. SCVS: ---------------------------------------------------------------------- git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3572 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -169,12 +169,12 @@ inline Constant *operator^(const Constant &V1, const Constant &V2) {
|
||||
|
||||
// Shift Instructions...
|
||||
inline Constant *operator<<(const Constant &V1, const Constant &V2) {
|
||||
assert(V1.getType()->isIntegral() && V2.getType() == Type::UByteTy);
|
||||
assert(V1.getType()->isInteger() && V2.getType() == Type::UByteTy);
|
||||
return ConstRules::get(V1)->shl(&V1, &V2);
|
||||
}
|
||||
|
||||
inline Constant *operator>>(const Constant &V1, const Constant &V2) {
|
||||
assert(V1.getType()->isIntegral() && V2.getType() == Type::UByteTy);
|
||||
assert(V1.getType()->isInteger() && V2.getType() == Type::UByteTy);
|
||||
return ConstRules::get(V1)->shr(&V1, &V2);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user