Add Module::ComputeIdBound
authorDavid Neto <dneto@google.com>
Tue, 23 Aug 2016 15:41:28 +0000 (11:41 -0400)
committerDavid Neto <dneto@google.com>
Fri, 26 Aug 2016 20:27:12 +0000 (16:27 -0400)
commitd7b6362ed749969879b8909effc62df0fd120424
tree950f73377b5ecae5d43637a246dcd03865fe2ade
parent0a175eb0d655c7e0ee3be18f85cd32c5ca4a68de
Add Module::ComputeIdBound

When IDs change, something should use this utility method
and Module::SetIdBound before writing out the binary.
source/opt/module.cpp
source/opt/module.h
test/opt/test_module.cpp