[LLVMdev] Support/CommandLine.h exposed through Pass.h?

Reid Spencer reid at x10sys.com
Tue Aug 24 10:35:26 PDT 2004


On Tue, 2004-08-24 at 10:39, Chris Lattner wrote:
> On Tue, 24 Aug 2004, Reid Spencer wrote:
> 
> > So, my solution is to declare the EnableTiming global var in Pass.h,
> > remove its "static" keyword in Pass.cpp and expose
> > "Support/CommandLine.h" in Pass.h. This compiles and works fine in all
> > tools, but its a bit gross to expose CommandLine.h via Pass.h.
> >
> > Anyone object?
> 
> Yes, I do.  :)  Check out how -debug is handled.  In particular, the
> CommandLine library supports the idea of "external storage", which will
> allow you to just put a bool in the header, and have the command line
> option set the bool.  This is described in the CommandLine documentation
> as well.

Ah, okay. That makes sense. Will do.

> 
> -Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040824/f01d426c/attachment.sig>


More information about the llvm-dev mailing list