UseListOrder: Create a struct around OrderMap, NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214241 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2014-07-29 23:03:40 +00:00
parent 70626f555c
commit abf3c77acb

View File

@ -26,7 +26,15 @@
using namespace llvm;
namespace {
typedef DenseMap<const Value *, std::pair<unsigned, bool>> OrderMap;
struct OrderMap {
DenseMap<const Value *, std::pair<unsigned, bool>> IDs;
unsigned size() const { return IDs.size(); }
std::pair<unsigned, bool> &operator[](const Value *V) { return IDs[V]; }
std::pair<unsigned, bool> lookup(const Value *V) const {
return IDs.lookup(V);
}
};
}
static void orderValue(const Value *V, OrderMap &OM) {