[llvm-bugs] [Bug 28529] New: OrcMCJITReplacement::removeModule does not work as expected

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 12 15:20:00 PDT 2016


            Bug ID: 28529
           Summary: OrcMCJITReplacement::removeModule does not work as
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: OrcJIT
          Assignee: unassignedbugs at nondot.org
          Reporter: aamir.vazir at algocell.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

OrcMCJITReplacement does not override ExecutionEngine::removeModule. This
appears to prevent the use-case of adding a module, compiling, running and then
removing the module, using ExecutionEngine. 

The patch appears to be to implement OrcMCJITReplacement::removeModule and
include a call to LazyEmitLayer.removeModuleSet

Note there is an added complication that OrcMCJITReplacement::addModule calls
LazyEmitLayer.addModuleSet without returning the resulting ModuleSetHandleT,
but this value is needed for calling LazyEmitLayer.removeModuleSet

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160712/68e455f8/attachment.html>

More information about the llvm-bugs mailing list