diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-30 05:56:51 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-30 05:56:51 +0000 |
commit | cf2bc3d76748b99f9176c7c38d0de9e7d6a33899 (patch) | |
tree | 0098d7304fd2e91487f533d45ef914aafcdee258 | |
parent | 143cf94f9245d95a8d46fdec073f52724b7b50b9 (diff) | |
download | bcm5719-llvm-cf2bc3d76748b99f9176c7c38d0de9e7d6a33899.tar.gz bcm5719-llvm-cf2bc3d76748b99f9176c7c38d0de9e7d6a33899.zip |
Add a blurb about exploiting the use of external storage.
llvm-svn: 16114
-rw-r--r-- | llvm/docs/CommandLine.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/docs/CommandLine.html b/llvm/docs/CommandLine.html index 03ffbbdd536..0eda9c2c4d2 100644 --- a/llvm/docs/CommandLine.html +++ b/llvm/docs/CommandLine.html @@ -1740,8 +1740,16 @@ tutorial.</p> </div> <div class="doc_text"> - -<p>TODO: fill in this section</p> + <p>Several of the LLVM libraries define static <tt>cl::opt</tt> instances that + will automatically be included in any program that links with that library. + This is a feature. However, sometimes it is necessary to know the value of the + command line option outside of the library. In these cases the library does or + should provide an external storage location that is accessible to users of the + library. Examples of this include the <tt>llvm::DebugFlag</tt> exported by the + <tt>lib/Support/Debug.cpp</tt> file and the <tt>llvm::TimePassesIsEnabled</tt> + flag exported by the <tt>lib/VMCore/Pass.cpp</tt> file.</p> + +<p>TODO: complete this section</p> </div> |