summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-01-01 17:21:58 +0000
committerDuncan Sands <baldrick@free.fr>2011-01-01 17:21:58 +0000
commit92ad41f99e9a359c722bda78b3524d207134b133 (patch)
treef1e8b670b6477769f9993150f977b709af5616b7
parente3c539581c813a2de1d7feebaaa8f92dcc697c6b (diff)
downloadbcm5719-llvm-92ad41f99e9a359c722bda78b3524d207134b133.tar.gz
bcm5719-llvm-92ad41f99e9a359c722bda78b3524d207134b133.zip
Clarify that the loadable module turns up in the top-level directory,
not locally. llvm-svn: 122655
-rw-r--r--llvm/docs/WritingAnLLVMPass.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/docs/WritingAnLLVMPass.html b/llvm/docs/WritingAnLLVMPass.html
index a1d55649016..14148d13b9a 100644
--- a/llvm/docs/WritingAnLLVMPass.html
+++ b/llvm/docs/WritingAnLLVMPass.html
@@ -203,8 +203,8 @@ include $(LEVEL)/Makefile.common
</pre></div>
<p>This makefile specifies that all of the <tt>.cpp</tt> files in the current
-directory are to be compiled and linked together into a
-<tt>Debug+Asserts/lib/Hello.so</tt> shared object that can be dynamically loaded by
+directory are to be compiled and linked together into a shared object
+<tt>$(LEVEL)/Debug+Asserts/lib/Hello.so</tt> that can be dynamically loaded by
the <tt>opt</tt> or <tt>bugpoint</tt> tools via their <tt>-load</tt> options.
If your operating system uses a suffix other than .so (such as windows or
Mac OS/X), the appropriate extension will be used.</p>
@@ -341,8 +341,9 @@ is supplied as fourth argument. </p>
</pre></div>
<p>Now that it's all together, compile the file with a simple "<tt>gmake</tt>"
-command in the local directory and you should get a new
-"<tt>Debug+Asserts/lib/Hello.so</tt> file. Note that everything in this file is
+command in the local directory and you should get a new file
+"<tt>Debug+Asserts/lib/Hello.so</tt>" under the top level directory of the LLVM
+source tree (not in the local directory). Note that everything in this file is
contained in an anonymous namespace: this reflects the fact that passes are self
contained units that do not need external interfaces (although they can have
them) to be useful.</p>
OpenPOWER on IntegriCloud