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:
parent
d130fd7e21
commit
589a519a8a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user