Add an exports file for the Hello example plugin.
authorDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 17:36:51 +0000 (17:36 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 17:36:51 +0000 (17:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106768 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Hello/Hello.exports [new file with mode: 0644]
lib/Transforms/Hello/Makefile

diff --git a/lib/Transforms/Hello/Hello.exports b/lib/Transforms/Hello/Hello.exports
new file mode 100644 (file)
index 0000000..e69de29
index c5e75d43af65ec7ac6913bc8b4c73530a8c67a75..f1e31489d3c966bbdabc57ac81807e83e9e5059c 100644 (file)
@@ -12,5 +12,13 @@ LIBRARYNAME = LLVMHello
 LOADABLE_MODULE = 1
 USEDLIBS =
 
+# If we don't need RTTI or EH, there's no reason to export anything
+# from the hello plugin.
+ifneq ($(REQUIRES_RTTI), 1)
+ifneq ($(REQUIRES_EH), 1)
+EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/Hello.exports
+endif
+endif
+
 include $(LEVEL)/Makefile.common