search for: clearglobalmappingsfrommodule

Displaying 2 results from an estimated 2 matches for "clearglobalmappingsfrommodule".

2011 Sep 09
3
[LLVMdev] runStaticConstructorsDestructors not calling static destructors
...tMCPU("core2") .create(); EE->DisableLazyCompilation(); After passing in the compiled module, I call: EE->runStaticConstructorsDestructors(module, false); Then to test the tear-down of the module, I call: EE->runStaticConstructorsDestructors(mImpl->module, true); EE->clearGlobalMappingsFromModule(mImpl->module); EE->removeModule(mImpl->module); The C++ code compiled: #include <stdio.h> class Foo { public: Foo() { printf("Foo\n"); }; ~Foo() { printf("~Foo\n"); }; int x; }; // a static variable: Foo foo; The constructor is being called (I see ...
2011 Sep 09
0
[LLVMdev] runStaticConstructorsDestructors not calling static destructors
...->DisableLazyCompilation(); > > After passing in the compiled module, I call: > > EE->runStaticConstructorsDestructors(module, false); > > Then to test the tear-down of the module, I call: > > EE->runStaticConstructorsDestructors(mImpl->module, true); > EE->clearGlobalMappingsFromModule(mImpl->module); > EE->removeModule(mImpl->module); > > > > The C++ code compiled: > > #include <stdio.h> > class Foo { > public: >        Foo() { printf("Foo\n"); }; >        ~Foo() { printf("~Foo\n"); }; > >        int x; &g...