mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
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:
parent
70626f555c
commit
abf3c77acb
@ -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…
x
Reference in New Issue
Block a user