commit | 5a94a64542e21fb898d9dbcffa51d8e14bdb2c66 | [log] [tgz] |
---|---|---|
author | David Blaikie <dblaikie@gmail.com> | Fri Nov 28 21:37:54 2014 +0000 |
committer | David Blaikie <dblaikie@gmail.com> | Fri Nov 28 21:37:54 2014 +0000 |
tree | 63c081f2c6a5ee207988a2c8cfbac031351fa8c3 | |
parent | 54786a0936bf0ba3d83be3e8fd32f1488ba9e709 [diff] |
Use std::map<K, V> rather than std::map<K, std::unique_ptr<V>> Pointers and references to map elements are never invalidated (except on removal, which isn't used here) so there's no need for the indirection unless there's polymorphism at work. A little const correctness had to be fixed, since the indirection allowed some benign const violations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222937 91177308-0d34-0410-b5e6-96231b3b80d8