mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
[MCJIT] Unique-ptrify the RTDyldMemoryManager member of MCJIT. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223183 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
+5
-1
@@ -433,7 +433,11 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
RTDyldMM = new RemoteMemoryManager();
|
||||
else
|
||||
RTDyldMM = new SectionMemoryManager();
|
||||
builder.setMCJITMemoryManager(RTDyldMM);
|
||||
|
||||
// Deliberately construct a temp std::unique_ptr to pass in. Do not null out
|
||||
// RTDyldMM: We still use it below, even though we don't own it.
|
||||
builder.setMCJITMemoryManager(
|
||||
std::unique_ptr<RTDyldMemoryManager>(RTDyldMM));
|
||||
} else if (RemoteMCJIT) {
|
||||
errs() << "error: Remote process execution does not work with the "
|
||||
"interpreter.\n";
|
||||
|
||||
Reference in New Issue
Block a user