[lld] registry design proposal

Nick Kledzik kledzik at apple.com
Wed Dec 4 10:32:34 PST 2013


On Dec 4, 2013, at 12:00 AM, Rui Ueyama wrote:
> Is it intentional that these methods are static? By making them static, you will have only one global registry for file handers. If your process calls LLD APIs multiple times with different configurations, you need to reset the handlers after one iteration. It wouldn't work if it's multi-threaded. 

Good point!  I was trying to simplify so you don't need to instantiate a singleton.  But as you point out, you may want multiple linker instantiations running in parallel.  I'll rework this so you have to instantiate a Registry and the use non-static methods to access it.

-Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131204/672f9c36/attachment.html>


More information about the llvm-commits mailing list