Skip to content

Commit

Permalink
Added *hidden* flags -print-options and -print-all-options so
Browse files Browse the repository at this point in the history
developers can see if their driver changed any cl::Option's. The
current implementation isn't perfect but handles most kinds of
options. This is nice to have when decomposing the stages of
compilation and moving between different drivers. It's also a good
sanity check when comparing results produced by different command line
invocations that are expected to produce the comparable results.

Note: This is not an attempt to prolong the life of cl::Option. On the
contrary, it's a placeholder for a feature that must exist when
cl::Option is replaced by a more appropriate framework. A new
framework needs: a central option registry, dynamic name lookup,
non-global containers of option values (e.g. per-module,
per-function), *and* the ability to print options values and their defaults at
any point during compilation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128910 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
atrick committed Apr 5, 2011
1 parent 5dc0c50 commit ce96902
Show file tree
Hide file tree
Showing 4 changed files with 436 additions and 41 deletions.
Loading

0 comments on commit ce96902

Please sign in to comment.