search for: __cxx_global_initialization

Displaying 1 result from an estimated 1 matches for "__cxx_global_initialization".

2010 Jun 18
0
[LLVMdev] having troubles mixing ExecutionEngine::runStaticConstructorsDestructors() and Linker::LinkModules()
.... I've tried out the following sequences of calls to get this to work with statics, with the following difficulties: Option 1); Linker::LinkModules(A, B); EE->runStaticConstructorsDestructors(B, false); // <- note, Module B --> llvm error Program used external function '__cxx_global_initialization' which could not be resolved! Presumably because module B no longer exists. Option 2); Linker::LinkModules(A, B); EE->runStaticConstructorsDestructors(A, false); // <- note, Module A EE->getPointerToFunction(A->getFunction(funcname)); // e.g. funcname was originally d...