Improve memory ownership/management in TableGen by unique_ptrifying TreePattern's...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 17 Nov 2014 22:16:55 +0000 (22:16 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 17 Nov 2014 22:16:55 +0000 (22:16 +0000)
commit3941c30371853cdd9cd02c0d20fde90347289e6c
tree4d5deeef49815777fcaa28f67536088d2ceb3a90
parent5b9a46b789b6077dcb8f2e2c39c0765d28924bfc
Improve memory ownership/management in TableGen by unique_ptrifying TreePattern's Tree member.

The next step is to actually use unique_ptr in TreePatternNode's
Children vector. That will be more intrusive, and may not work,
depending on exactly how these things are handled (I have a bad
suspicion things are shared more than they should be, making this more
DAG than tree - but if it's really a tree, unique_ptr should suffice)

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