We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70626f5 commit abf3c77Copy full SHA for abf3c77
lib/Bitcode/Writer/ValueEnumerator.cpp
@@ -26,7 +26,15 @@
26
using namespace llvm;
27
28
namespace {
29
-typedef DenseMap<const Value *, std::pair<unsigned, bool>> OrderMap;
+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
+};
38
}
39
40
static void orderValue(const Value *V, OrderMap &OM) {
0 commit comments