Registering a type now rebuilds it out of memory owned by the manager.
authorAlan Baker <alanbaker@google.com>
Mon, 5 Feb 2018 14:47:05 +0000 (09:47 -0500)
committerAlan Baker <alanbaker@google.com>
Tue, 6 Feb 2018 15:17:56 +0000 (10:17 -0500)
commit871022772e865f314696d04b7180c3aca3e46590
treec9d71fe8547c0eec03cb6111ed13271ca1f7f6be
parent860b2ee5fc85021d813f0d5f2ce3981c68c3b197
Registering a type now rebuilds it out of memory owned by the manager.

* Added TypeManager::RebuildType
 * rebuilds the type and its constituent types in terms of memory owned
 by the manager.
 * Used by TypeManager::RegisterType to properly allocate memory
* Adding an unit test to expose the issue
* Added some tests to provide coverage of RebuildType
* Added an accessor to the target pointer for a forward pointer
source/opt/type_manager.cpp
source/opt/type_manager.h
source/opt/types.h
test/opt/type_manager_test.cpp