summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Error.cpp
diff options
context:
space:
mode:
authorFilip Pizlo <fpizlo@apple.com>2013-05-14 19:29:00 +0000
committerFilip Pizlo <fpizlo@apple.com>2013-05-14 19:29:00 +0000
commit9bc53e84677d0cff2001ac70c08c78a5e907527e (patch)
treeac4e31e0125602b83d6436bed51d19ca412dd05b /llvm/lib/Object/Error.cpp
parentb2132553d9542a3204148c5a3f1f718ecb9b35fa (diff)
downloadbcm5719-llvm-9bc53e84677d0cff2001ac70c08c78a5e907527e.tar.gz
bcm5719-llvm-9bc53e84677d0cff2001ac70c08c78a5e907527e.zip
SectionMemoryManager shouldn't be a JITMemoryManager. Previously, the
EngineBuilder interface required a JITMemoryManager even if it was being used to construct an MCJIT. But the MCJIT actually wants a RTDyldMemoryManager. Consequently, the SectionMemoryManager, which is meant for MCJIT, derived from the JITMemoryManager and then stubbed out a bunch of JITMemoryManager methods that weren't relevant to the MCJIT. This patch fixes the situation: it teaches the EngineBuilder that RTDyldMemoryManager is a supertype of JITMemoryManager, and that it's appropriate to pass a RTDyldMemoryManager instead of a JITMemoryManager if we're using the MCJIT. This allows us to remove the stub methods from SectionMemoryManager, and make SectionMemoryManager a direct subtype of RTDyldMemoryManager. llvm-svn: 181820
Diffstat (limited to 'llvm/lib/Object/Error.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud