mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Move the implementations of ==, != on AllocInfos here, from UnpackTraceFunction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
537132bf12
commit
232db6e8d6
@ -56,6 +56,15 @@ struct AllocInfo {
|
||||
CV.push_back (ConstantSInt::get (Type::IntTy, Placement));
|
||||
return ConstantStruct::get (ST, CV);
|
||||
}
|
||||
|
||||
/// AllocInfos compare equal if the allocation placements are equal
|
||||
/// (i.e., they can be equal even if they refer to operands from two
|
||||
/// different instructions.)
|
||||
///
|
||||
bool operator== (const AllocInfo &X) const {
|
||||
return (X.AllocState == AllocState) && (X.Placement == Placement);
|
||||
}
|
||||
bool operator!= (const AllocInfo &X) const { return !(*this == X); }
|
||||
};
|
||||
|
||||
#endif // ALLOCINFO_H
|
||||
|
@ -56,6 +56,15 @@ struct AllocInfo {
|
||||
CV.push_back (ConstantSInt::get (Type::IntTy, Placement));
|
||||
return ConstantStruct::get (ST, CV);
|
||||
}
|
||||
|
||||
/// AllocInfos compare equal if the allocation placements are equal
|
||||
/// (i.e., they can be equal even if they refer to operands from two
|
||||
/// different instructions.)
|
||||
///
|
||||
bool operator== (const AllocInfo &X) const {
|
||||
return (X.AllocState == AllocState) && (X.Placement == Placement);
|
||||
}
|
||||
bool operator!= (const AllocInfo &X) const { return !(*this == X); }
|
||||
};
|
||||
|
||||
#endif // ALLOCINFO_H
|
||||
|
Loading…
Reference in New Issue
Block a user