summaryrefslogtreecommitdiff
path: root/docs/WritingAnLLVMPass.html
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-08 01:48:17 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-08 01:48:17 +0000
commitebfe07fb1886fd2e99c56e59d56b68c096a13ce8 (patch)
treef688394b1da86a71c785054dee916e98d911bf48 /docs/WritingAnLLVMPass.html
parent1c567b5d92c4babe33d606aa2c2643655fd3a136 (diff)
Update the instructions for writing a pass as a loadable module per the
new definition in MakefileGuilde.html and Makefile.rules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/WritingAnLLVMPass.html')
-rw-r--r--docs/WritingAnLLVMPass.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html
index 71dc4926ac3..eaa8606ccce 100644
--- a/docs/WritingAnLLVMPass.html
+++ b/docs/WritingAnLLVMPass.html
@@ -178,13 +178,15 @@ LEVEL = ../../..
# Name of the library to build
LIBRARYNAME = Hello
-# Build a dynamically linkable shared object
-SHARED_LIBRARY = 1
-
# Make the shared library become a loadable module so the tools can
# dlopen/dlsym on the resulting library.
LOADABLE_MODULE = 1
+# Tell the build system which LLVM libraries your pass needs. You'll probably
+# need at least LLVMSystem.a, LLVMSupport.a, LLVMCore.a but possibly several
+# others too.
+LLVMLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a
+
# Include the makefile implementation stuff
include $(LEVEL)/Makefile.common
</pre></div>