diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-22 20:10:20 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-10-22 20:10:20 +0000 |
commit | 6b80e6e2b7793005ded19a9eb81b95fdb0f7bb79 (patch) | |
tree | 37a2a685d390892d7f0cba045d848a7154bf3a93 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | c78b8f3c3a01cf54a74c04dc0193a411412f9656 (diff) | |
download | bcm5719-llvm-6b80e6e2b7793005ded19a9eb81b95fdb0f7bb79.tar.gz bcm5719-llvm-6b80e6e2b7793005ded19a9eb81b95fdb0f7bb79.zip |
Add a ValueMap<ValueOrSubclass*, T> type. ValueMap<Value*, T> is safe to use
even when keys get RAUWed and deleted during its lifetime. By default the keys
act like WeakVHs, but users can pass a third template parameter to configure
how updates work and whether to do anything beyond updating the map on each
action.
It's also possible to automatically acquire a lock around ValueMap updates
triggered by RAUWs and deletes, to support the ExecutionEngine.
llvm-svn: 84890
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions