Add a blurb about exploiting the use of external storage.

llvm-svn: 16114
This commit is contained in:
Reid Spencer 2004-08-30 05:56:51 +00:00
parent 143cf94f92
commit cf2bc3d767
1 changed files with 9 additions and 1 deletions

View File

@ -1740,8 +1740,16 @@ tutorial.</p>
</div>
<div class="doc_text">
<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: fill in this section</p>
<p>TODO: complete this section</p>
</div>