Fix PR3724 by searching for the largest free block when
authorChris Lattner <sabre@nondot.org>
Mon, 9 Mar 2009 21:34:10 +0000 (21:34 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 Mar 2009 21:34:10 +0000 (21:34 +0000)
commit96c96b46e962c801c610ba878751d8c0ee1359c9
tree06d877835a0d77075144a21723110b0254d0ed4e
parentd07128c906c4b8b64ddc8cb7b14db67d77128b5d
Fix PR3724 by searching for the largest free block when
allocating memory in the JIT.  This is insanely inefficient, but
hey, most people implement their own memory managers anyway.

Patch by Eric Yew!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66472 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/JIT/JITMemoryManager.cpp