Skip to content

Commit abf3c77

Browse files
committed
UseListOrder: Create a struct around OrderMap, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214241 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 70626f5 commit abf3c77

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/Bitcode/Writer/ValueEnumerator.cpp

+9-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@
2626
using namespace llvm;
2727

2828
namespace {
29-
typedef DenseMap<const Value *, std::pair<unsigned, bool>> OrderMap;
29+
struct OrderMap {
30+
DenseMap<const Value *, std::pair<unsigned, bool>> IDs;
31+
32+
unsigned size() const { return IDs.size(); }
33+
std::pair<unsigned, bool> &operator[](const Value *V) { return IDs[V]; }
34+
std::pair<unsigned, bool> lookup(const Value *V) const {
35+
return IDs.lookup(V);
36+
}
37+
};
3038
}
3139

3240
static void orderValue(const Value *V, OrderMap &OM) {

0 commit comments

Comments
 (0)