1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

UseListOrder: Create a struct around OrderMap, NFC

llvm-svn: 214241
This commit is contained in:
Duncan P. N. Exon Smith 2014-07-29 23:03:40 +00:00
parent d130fd7e21
commit 589a519a8a

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) {