[llvm-commits] CVS: llvm/docs/CommandLine.html

Reid Spencer reid at x10sys.com
Sun Aug 29 22:57:09 PDT 2004



Changes in directory llvm/docs:

CommandLine.html updated: 1.25 -> 1.26
---
Log message:

Add a blurb about exploiting the use of external storage.


---
Diffs of the changes:  (+10 -2)

Index: llvm/docs/CommandLine.html
diff -u llvm/docs/CommandLine.html:1.25 llvm/docs/CommandLine.html:1.26
--- llvm/docs/CommandLine.html:1.25	Fri Aug 13 15:19:14 2004
+++ llvm/docs/CommandLine.html	Mon Aug 30 00:56:51 2004
@@ -1740,8 +1740,16 @@
 </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>
 
@@ -1767,7 +1775,7 @@
 
   <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
   <a href="http://llvm.cs.uiuc.edu">LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2004/08/13 20:19:14 $
+  Last modified: $Date: 2004/08/30 05:56:51 $
 </address>
 
 </body>






More information about the llvm-commits mailing list