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

Chandler Carruth chandlerc at google.com
Fri Aug 29 12:47:02 PDT 2014


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140829/1cc135cc/attachment.html>


More information about the llvm-dev mailing list