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)
commitc58fa9b7a40a78dd34845e36dd42163054a45b16
tree71ff2c7fc3e2a48f937e8b81e72596a1b225f1c7
parent9bc81fbe9240ed2288952896f9ac1f4afd6d19dc
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.

llvm-svn: 222937
llvm/utils/TableGen/AsmMatcherEmitter.cpp