mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Remove the remaining uses of abs64 and nuke it.
std::abs works just fine and we're already using it in many places. NFC intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -649,11 +649,11 @@ namespace {
|
||||
if (VTy != VTy2 && Offset < 0) {
|
||||
int64_t VTy2TSS = (int64_t) DL->getTypeStoreSize(VTy2);
|
||||
OffsetInElmts = Offset/VTy2TSS;
|
||||
return (abs64(Offset) % VTy2TSS) == 0;
|
||||
return (std::abs(Offset) % VTy2TSS) == 0;
|
||||
}
|
||||
|
||||
OffsetInElmts = Offset/VTyTSS;
|
||||
return (abs64(Offset) % VTyTSS) == 0;
|
||||
return (std::abs(Offset) % VTyTSS) == 0;
|
||||
}
|
||||
|
||||
return false;
|
||||
@ -984,8 +984,8 @@ namespace {
|
||||
unsigned IAlignment, JAlignment, IAddressSpace, JAddressSpace;
|
||||
int64_t OffsetInElmts = 0;
|
||||
if (getPairPtrInfo(I, J, IPtr, JPtr, IAlignment, JAlignment,
|
||||
IAddressSpace, JAddressSpace,
|
||||
OffsetInElmts) && abs64(OffsetInElmts) == 1) {
|
||||
IAddressSpace, JAddressSpace, OffsetInElmts) &&
|
||||
std::abs(OffsetInElmts) == 1) {
|
||||
FixedOrder = (int) OffsetInElmts;
|
||||
unsigned BottomAlignment = IAlignment;
|
||||
if (OffsetInElmts < 0) BottomAlignment = JAlignment;
|
||||
|
Reference in New Issue
Block a user