beanz added a comment.

In https://reviews.llvm.org/D26093#582618, @tfiala wrote:

> The current usage of CommandLine via global static constructors in Debug.cpp 
> seems like a poor choice, as it forces all users of llvm with NDEBUG not 
> defined to get some command line behavior that they may never use.  Maybe 
> some aspect of that can be made lazy?


It can't be made lazy without completely re-designing how cl::opt works. Which 
is something I've had lengthy discussions with Chandler about. Currently the 
biggest issue with fixing it relates to how the new pass manager works. 
Specifically in order to provide meaningful -help output we need a way to 
register command line options in passes, which we have today, but won't with 
the new pass manager.

It is an open problem that we're trying to come up with a solution to.

> Unless there is strong opposition, I'd like to put this in.

No objection from me.


https://reviews.llvm.org/D26093



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to