<div dir="ltr">On 16 January 2013 18:22, Benjamin Kramer <span dir="ltr"><<a href="mailto:benny.kra@gmail.com" target="_blank">benny.kra@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">thread-safety issues aside (I think most c++ implementation implement some kind of safeguard for static initializers), the std::vectors in this patch add static destructors to the code. We try to avoid those in LLVM, can't you just keep them in static constant arrays and only wrap the search on it with another object?</span></div>
</blockquote><div><br></div><div style>Hi Ben,</div><div style><br></div><div style>That's a good point. I tried not to use vectors, but I'd have to use all sorts of tricks to keep variable length arrays without increasing in either template code or run time delays, though I haven't thought about the static destructors.</div>
<div style><br></div><div style>I'll have another look. ;)</div><div style><br></div><div style>cheers,</div><div style>--renato</div></div></div></div>