search for: getdestructors

Displaying 4 results from an estimated 4 matches for "getdestructors".

2018 Jun 19
2
runStaticConstructorsDestructors() causes crash on exit
...of the tree!), I am able to execute my functions all right... as long as there are no constructors and destructors to call. My question: is there a simple way, with the Orc API, to run a module's constructors and destructors? I see how OrcMCJITReplacement does it, calling getConstructors() and getDestructors() when a module is added, and running them later using a layer, but is there maybe a simpler way that I am missing? I would prefer to avoid having to invent secret names for constructors, play with their linkage and visibility, and generally get involved in things I don't understand... Thanks,...
2018 Jun 21
2
runStaticConstructorsDestructors() causes crash on exit
...e my functions all > right... as long as there are no constructors and destructors to call. > > > > My question: is there a simple way, with the Orc API, to run a module's > constructors and destructors? I see how OrcMCJITReplacement does it, > calling getConstructors() and getDestructors() when a module is added, and > running them later using a layer, but is there maybe a simpler way that I > am missing? I would prefer to avoid having to invent secret names for > constructors, play with their linkage and visibility, and generally get > involved in things I don't un...
2018 Jun 25
2
runStaticConstructorsDestructors() causes crash on exit
...ions all > right... as long as there are no constructors and destructors to call. > > > > > > My question: is there a simple way, with the Orc API, to run a > module's constructors and destructors? I see how OrcMCJITReplacement does > it, calling getConstructors() and getDestructors() when a module is added, > and running them later using a layer, but is there maybe a simpler way that > I am missing? I would prefer to avoid having to invent secret names for > constructors, play with their linkage and visibility, and generally get > involved in things I don't un...
2018 Jun 14
3
runStaticConstructorsDestructors() causes crash on exit
Greetings, LLVM wizards. I am using clang to compile a C++ module, and an ExecutionEngine (MCJIT) to execute a function it defines. That works (or pretends to). However, if I call the module's constructors first: exec_engine->runStaticConstructorsDestructors(false); exec_engine->runFunctionAsMain(function, argvec, NULL); execution still works, but my program crashes when it exits, in