[RuntimeDyld] DenseMap -> std::unordered_map
authorKeno Fischer <kfischer@college.harvard.edu>
Thu, 3 Dec 2015 21:27:59 +0000 (21:27 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Thu, 3 Dec 2015 21:27:59 +0000 (21:27 +0000)
commit03212a0ad9e68062010028bb737c69312a6ad80f
tree1f95f73c1f0eec4f5a17a873256a40119b5a0fc3
parent52c4f7de0934eef2019b77a14dc94415459d3fc1
[RuntimeDyld] DenseMap -> std::unordered_map

DenseMap is most applicable when both keys and values are small.
In this case, the value violates that assumption, causing quite
significant memory overhead. A std::unordered_map is more appropriate
in this case (or at least fixed the memory problems I was seeing).

Differential Revision: http://reviews.llvm.org/D14910

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254651 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h