Hi,
I have LLVM revision 223186 and LLDB revision 223190, both fetched today
and could not build LLDB inside the source tree. The problem seems to be
that an LLVM interface was updated to accept a std::unique_ptr instead
of a raw c-pointer and the LLDB code that calls it was not. I have
attached a patch that I think fixes the problem.
Thanks
~ ry
Index: source/Expression/IRExecutionUnit.cpp
===================================================================
--- source/Expression/IRExecutionUnit.cpp (revision 223190)
+++ source/Expression/IRExecutionUnit.cpp (working copy)
@@ -309,7 +309,7 @@
builder.setEngineKind(llvm::EngineKind::JIT)
.setErrorStr(&error_string)
.setRelocationModel(relocModel)
- .setMCJITMemoryManager(new MemoryManager(*this))
+ .setMCJITMemoryManager(std::unique_ptr<MemoryManager>(new MemoryManager(*this)))
.setCodeModel(codeModel)
.setOptLevel(llvm::CodeGenOpt::Less);
_______________________________________________
lldb-dev mailing list
lldb-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev