Fix bug in documentation
authorChris Lattner <sabre@nondot.org>
Wed, 14 Aug 2002 20:06:13 +0000 (20:06 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Aug 2002 20:06:13 +0000 (20:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3334 91177308-0d34-0410-b5e6-96231b3b80d8

docs/WritingAnLLVMPass.html

index f9e82989537d1a401f8b8ad2ba85bbb96e326758..7db23f393aad94ab4b96b358a1f47cd64b8c53ed 100644 (file)
@@ -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>