diff options
| author | Lang Hames <lhames@gmail.com> | 2015-12-07 17:35:56 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2015-12-07 17:35:56 +0000 |
| commit | dc7b6c3623ab1fcd313f31c2bf3e6cc7aae4a3a3 (patch) | |
| tree | 7db4fa6ff9e8ae127e61f4931d430e740e0550b1 /llvm/tools/llvm-rtdyld | |
| parent | c55b4e25f4ad3f029f2c016cabbe68396f20f1fe (diff) | |
| download | bcm5719-llvm-dc7b6c3623ab1fcd313f31c2bf3e6cc7aae4a3a3.tar.gz bcm5719-llvm-dc7b6c3623ab1fcd313f31c2bf3e6cc7aae4a3a3.zip | |
[Orc] Removing traces of takeOwnershipOfBuffers left after r251560.
Patch by Joshua Gerrard. Thanks Joshua!
llvm-svn: 254919
Diffstat (limited to 'llvm/tools/llvm-rtdyld')
| -rw-r--r-- | llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp index 59c9a0c990f..6ee3a44b63b 100644 --- a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp +++ b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp @@ -388,11 +388,6 @@ static int executeInput() { doPreallocation(MemMgr); RuntimeDyld Dyld(MemMgr, MemMgr); - // FIXME: Preserve buffers until resolveRelocations time to work around a bug - // in RuntimeDyldELF. - // This fixme should be fixed ASAP. This is a very brittle workaround. - std::vector<std::unique_ptr<MemoryBuffer>> InputBuffers; - // If we don't have any input files, read from stdin. if (!InputFileList.size()) InputFileList.push_back("-"); @@ -409,7 +404,6 @@ static int executeInput() { return Error("unable to create object file: '" + EC.message() + "'"); ObjectFile &Obj = **MaybeObj; - InputBuffers.push_back(std::move(*InputBuffer)); // Load the object file Dyld.loadObject(Obj); @@ -656,11 +650,6 @@ static int linkAndVerify() { RuntimeDyldChecker Checker(Dyld, Disassembler.get(), InstPrinter.get(), llvm::dbgs()); - // FIXME: Preserve buffers until resolveRelocations time to work around a bug - // in RuntimeDyldELF. - // This fixme should be fixed ASAP. This is a very brittle workaround. - std::vector<std::unique_ptr<MemoryBuffer>> InputBuffers; - // If we don't have any input files, read from stdin. if (!InputFileList.size()) InputFileList.push_back("-"); @@ -679,7 +668,6 @@ static int linkAndVerify() { return Error("unable to create object file: '" + EC.message() + "'"); ObjectFile &Obj = **MaybeObj; - InputBuffers.push_back(std::move(*InputBuffer)); // Load the object file Dyld.loadObject(Obj); |

