summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-10-19 18:49:59 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-10-19 18:49:59 +0000
commit7d2edada7f3c2997a5e291de29bfcecd130368b4 (patch)
tree57838a96a7abf657c666ff96f5480e9ee48a2d61 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent8d2e3a28d6c08c3d5114df8ad0ecd5a02e3c5b8c (diff)
Clean up the JITResolver stub/callsite<->function maps.
The JITResolver maps Functions to their canonical stubs and all callsites for lazily-compiled functions to their target Functions. To make Function destruction work, I'm going to need to remove all callsites on destruction, so this patch also adds the reverse mapping for that. There was an incorrect assumption in here that the only stub for a function would be the one caused by needing to lazily compile it, while x86-64 far calls and dlsym-stubs could also cause such stubs, but I didn't look for a test case that the assumption broke. This also adds DenseMapInfo<AssertingVH> so I can use DenseMaps instead of std::maps. llvm-svn: 84522
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions