[LLVMdev] does TargetRegistry allocate heap memory?

Jochen Wilhelmy j.wilhelmy at arcor.de
Sun Dec 26 10:38:19 PST 2010


Hi and merry X-Mas!

At initialization I add some targets (e.g. LLVMInitializeX86TargetInfo()).
Is this guaranteed not to allocate memory to prevent memory leaks?
If you use llvm in a plug-in then it is possible to load and unload the 
plugin.
As there is no way to clear the target registry and I do not see a "new"
at the first glance I assume it does not allocate heap memory.
Is this correct?

-Jochen






More information about the llvm-dev mailing list