From b993feb53c2c46b1bab65f486598d20f220b3daf Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 30 Aug 2004 05:56:51 +0000 Subject: [PATCH] Add a blurb about exploiting the use of external storage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16114 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandLine.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/CommandLine.html b/docs/CommandLine.html index 03ffbbdd536..0eda9c2c4d2 100644 --- a/docs/CommandLine.html +++ b/docs/CommandLine.html @@ -1740,8 +1740,16 @@ tutorial.

- -

TODO: fill in this section

+

Several of the LLVM libraries define static cl::opt 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 llvm::DebugFlag exported by the + lib/Support/Debug.cpp file and the llvm::TimePassesIsEnabled + flag exported by the lib/VMCore/Pass.cpp file.

+ +

TODO: complete this section

-- 2.11.0