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)
commitd749e34d3f1fe3c0a2e224758b4513a45e958d34
tree682feb4159528530bdabee0ac28b22041a5d80c0
parent360fcbd468175f267e5c5d24f26fedacef025170
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.

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