summaryrefslogtreecommitdiff
path: root/docs/WritingAnLLVMPass.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-14 20:06:13 +0000
committerChris Lattner <sabre@nondot.org>2002-08-14 20:06:13 +0000
commit17a4c3ecfb938da7cb30327b163c005b8b225f08 (patch)
tree697550c060b2f1686d1a9685513521304b4025ab /docs/WritingAnLLVMPass.html
parentd02247126014d6bce0c5f2b7283589672530668b (diff)
downloadllvm-17a4c3ecfb938da7cb30327b163c005b8b225f08.tar.gz
llvm-17a4c3ecfb938da7cb30327b163c005b8b225f08.tar.bz2
llvm-17a4c3ecfb938da7cb30327b163c005b8b225f08.tar.xz
Fix bug in documentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3334 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/WritingAnLLVMPass.html')
-rw-r--r--docs/WritingAnLLVMPass.html21
1 files changed, 15 insertions, 6 deletions
diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html
index f9e8298953..7db23f393a 100644
--- a/docs/WritingAnLLVMPass.html
+++ b/docs/WritingAnLLVMPass.html
@@ -144,15 +144,24 @@ First thing you need to do is create a new directory somewhere in the LLVM
source base. For this example, we'll assume that you made
"<tt>lib/Transforms/Hello</tt>". The first thing you must do is set up a build
script (Makefile) that will compile the source code for the new pass. To do
-this, copy this into "<tt>Makefile</tt>":<p>
+this, copy this into "<tt>Makefile</tt>" (be very careful that there are no
+extra space characters at the end of the lines though... that seems to confuse
+<tt>gmake</tt>):<p>
</ul><hr><ul><pre>
# Makefile for hello pass
-LEVEL = ../../.. # Path to top level of LLVM heirarchy
-LIBRARYNAME = hello # Name of the library to build
-SHARED_LIBRARY = 1 # Build a dynamically loadable shared object
-include $(LEVEL)/Makefile.common # Include the makefile implementation stuff
+# Path to top level of LLVM heirarchy
+LEVEL = ../../..
+
+# Name of the library to build
+LIBRARYNAME = hello
+
+# Build a dynamically loadable shared object
+SHARED_LIBRARY = 1
+
+# Include the makefile implementation stuff
+include $(LEVEL)/Makefile.common
</pre></ul><hr><ul><p>
This makefile specifies that all of the <tt>.cpp</tt> files in the current
@@ -966,6 +975,6 @@ href="#Pass"><tt>Pass</tt></a>, only the other way around.<p>
<address><a href="mailto:sabre@nondot.org">Christopher Lattner</a></address>
<!-- Created: Tue Aug 6 15:00:33 CDT 2002 -->
<!-- hhmts start -->
-Last modified: Thu Aug 8 15:16:18 CDT 2002
+Last modified: Wed Aug 14 15:04:56 CDT 2002
<!-- hhmts end -->
</font></body></html>