[LLVMdev] [RFC] Removing static initializers for command line options

Jim Grosbach grosbach at apple.com
Fri Aug 29 12:52:09 PDT 2014


> On Aug 29, 2014, at 12:47 PM, Chandler Carruth <chandlerc at google.com> wrote:
> 
> 
> On Fri, Aug 29, 2014 at 11:29 AM, Jim Grosbach <grosbach at apple.com> wrote:
> It depends on the specifics, but in general having the default value for the options be specified (potentially differently) on every call to the getter method feels very wrong to me. Perhaps I am misunderstanding the proposal?
> 
> No, I think you're understanding the proposal.
> 
> I agree that the default changing is... ew.
> 
> However, the more I think about it, the less sense ever *not* having a default makes for these options. So maybe it would be fine to just always require an initial value when registering?

Yeah, I think that’s the right way to go here.

-Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140829/f0a921d1/attachment.html>


More information about the llvm-dev mailing list