Use std::map<K, V> rather than std::map<K, std::unique_ptr<V>>
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 28 Nov 2014 21:37:54 +0000 (21:37 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 28 Nov 2014 21:37:54 +0000 (21:37 +0000)
commit5a94a64542e21fb898d9dbcffa51d8e14bdb2c66
tree63c081f2c6a5ee207988a2c8cfbac031351fa8c3
parent54786a0936bf0ba3d83be3e8fd32f1488ba9e709
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
utils/TableGen/AsmMatcherEmitter.cpp