On czw, 2017-03-30 at 13:55 -0700, Chris Bieneman wrote: > I had a talk with Lang about the ExecutionEngine library structuring, and it > sounds like there are some problems there that need to be worked out. > > Luckily for this specific case, I think the solution is actually quite simple: > > ``` > diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h > b/include/llvm/ExecutionEngine/ExecutionEngine.h > index f68337c..cc99f94 100644 > --- a/include/llvm/ExecutionEngine/ExecutionEngine.h > +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h > @@ -15,7 +15,6 @@ > #ifndef LLVM_EXECUTIONENGINE_EXECUTIONENGINE_H > #define LLVM_EXECUTIONENGINE_EXECUTIONENGINE_H > > -#include "RuntimeDyld.h" > #include "llvm-c/ExecutionEngine.h" > #include "llvm/ADT/SmallVector.h" > #include "llvm/ADT/StringRef.h" > @@ -49,6 +48,7 @@ class ObjectCache; > class RTDyldMemoryManager; > class Triple; > class Type; > +class JITSymbolResolver; > > namespace object { > class Archive; > ``` > > It seems to me that there is no reason why ExecutionEngine.h needs to include > RuntimeDyld.h. a forward declaration of the JITSymbolResolver class will > suffice. >
This does not solve the problem: lib64/liblldbExpression.a(IRExecutionUnit.cpp.o):IRExecutionUnit.cpp:function llvm::RTDyldMemoryManager::deregisterEHFrames(unsigned char*, unsigned long, unsigned long): error: undefined reference to 'llvm::RTDyldMemoryManager::deregisterEHFramesInProcess(unsigned char*, unsigned long)' lib64/liblldbExpression.a(IRExecutionUnit.cpp.o):IRExecutionUnit.cpp:vtable for lldb_private::IRExecutionUnit::MemoryManager: error: undefined reference to 'llvm::RuntimeDyld::MemoryManager::anchor()' lib64/liblldbExpression.a(IRExecutionUnit.cpp.o):IRExecutionUnit.cpp:vtable for lldb_private::IRExecutionUnit::MemoryManager: error: undefined reference to 'llvm::JITSymbolResolver::anchor()' collect2: error: ld returned 1 exit status -- Best regards, Michał Górny
signature.asc
Description: This is a digitally signed message part
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits