From fc33a3099eb37d61d422be603a3de8b5c9e384ae Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 24 Jun 2010 17:36:51 +0000 Subject: [PATCH] Add an exports file for the Hello example plugin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106768 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Hello/Hello.exports | 0 lib/Transforms/Hello/Makefile | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 lib/Transforms/Hello/Hello.exports diff --git a/lib/Transforms/Hello/Hello.exports b/lib/Transforms/Hello/Hello.exports new file mode 100644 index 00000000000..e69de29bb2d diff --git a/lib/Transforms/Hello/Makefile b/lib/Transforms/Hello/Makefile index c5e75d43af6..f1e31489d3c 100644 --- a/lib/Transforms/Hello/Makefile +++ b/lib/Transforms/Hello/Makefile @@ -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