mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Retire llvm::less_ptr. llvm::deref is much more flexible.
llvm-svn: 369675
This commit is contained in:
parent
db09140c2c
commit
74e9ad1a9d
@ -95,18 +95,6 @@ template <class Ty> struct identity {
|
||||
}
|
||||
};
|
||||
|
||||
template <class Ty> struct less_ptr {
|
||||
bool operator()(const Ty* left, const Ty* right) const {
|
||||
return *left < *right;
|
||||
}
|
||||
};
|
||||
|
||||
template <class Ty> struct greater_ptr {
|
||||
bool operator()(const Ty* left, const Ty* right) const {
|
||||
return *right < *left;
|
||||
}
|
||||
};
|
||||
|
||||
/// An efficient, type-erasing, non-owning reference to a callable. This is
|
||||
/// intended for use as the type of a function parameter that is not used
|
||||
/// after the function in question returns.
|
||||
|
@ -1439,7 +1439,7 @@ void AsmMatcherInfo::buildOperandMatchInfo() {
|
||||
|
||||
/// Map containing a mask with all operands indices that can be found for
|
||||
/// that class inside a instruction.
|
||||
typedef std::map<ClassInfo *, unsigned, less_ptr<ClassInfo>> OpClassMaskTy;
|
||||
typedef std::map<ClassInfo *, unsigned, deref<std::less<>>> OpClassMaskTy;
|
||||
OpClassMaskTy OpClassMask;
|
||||
|
||||
for (const auto &MI : Matchables) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user