Simplify ownership by using forward_list<T> rather than vector<unique_ptr<T>>
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 28 Nov 2014 20:35:57 +0000 (20:35 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 28 Nov 2014 20:35:57 +0000 (20:35 +0000)
commit841db2c1e4a211d83a158138177d391f4f1ee565
treec9a6e55f8cdbf1f04c93ac04e1155246b2e25dcd
parentda08412bd068ba21ad898f79ab1d05d1e9a9c14e
Simplify ownership by using forward_list<T> rather than vector<unique_ptr<T>>

Since the elements were not polymorphic, the unique_ptr was only used to
avoid pointer invalidation on container resizes - might as well skip the
indirection and use a container with suitable invalidation semantics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222931 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/AsmMatcherEmitter.cpp