From: Benjamin Kramer Date: Thu, 22 Aug 2019 17:32:16 +0000 (+0000) Subject: Retire llvm::less_ptr. llvm::deref is much more flexible. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=413649c62f2279eaaed4fb937d10e33315a1d4d2;p=llvm Retire llvm::less_ptr. llvm::deref is much more flexible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369675 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h index aa4c9e9646e..274933bc520 100644 --- a/include/llvm/ADT/STLExtras.h +++ b/include/llvm/ADT/STLExtras.h @@ -95,18 +95,6 @@ template struct identity { } }; -template struct less_ptr { - bool operator()(const Ty* left, const Ty* right) const { - return *left < *right; - } -}; - -template 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. diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index f285b1d6767..df07f1cd809 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -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> OpClassMaskTy; + typedef std::map>> OpClassMaskTy; OpClassMaskTy OpClassMask; for (const auto &MI : Matchables) {