summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Hello/Hello.exports0
-rw-r--r--llvm/lib/Transforms/Hello/Makefile8
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Hello/Hello.exports b/llvm/lib/Transforms/Hello/Hello.exports
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/llvm/lib/Transforms/Hello/Hello.exports
diff --git a/llvm/lib/Transforms/Hello/Makefile b/llvm/lib/Transforms/Hello/Makefile
index c5e75d43af6..f1e31489d3c 100644
--- a/llvm/lib/Transforms/Hello/Makefile
+++ b/llvm/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
OpenPOWER on IntegriCloud