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)
commit8922a17af3fa0da165c0f49273c6fb7228163edd
treeba7d1b218af6f4b296b7386217969445d3b2252b
parent6edef20405d2f6ac190d796b215d6d288e8dc125
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)

llvm-svn: 222183
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h