From 2cd536c7055dab5aaaf2f96016705c11ae5e6eec Mon Sep 17 00:00:00 2001 From: Roger Ferrer Ibanez Date: Mon, 12 Jun 2017 07:22:15 +0000 Subject: Export the required symbol from DynamicLibraryTests Running unittests/Support/DynamicLibrary/DynamicLibraryTests fails when LLVM is configured with -DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON, because the test's version script only contains symbols extracted from the static libraries, that the test links with, but not those from the main object/executable itself. The patch moves the one symbol, needed by the test, to a static library. Fixes https://bugs.llvm.org/show_bug.cgi?id=32893 Patch by Momchil Velikov. Differential Revision: https://reviews.llvm.org/D33789 llvm-svn: 305181 --- llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp') diff --git a/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp b/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp index 80a20990de1..c54e1b7eed2 100644 --- a/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp +++ b/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp @@ -19,8 +19,6 @@ using namespace llvm; using namespace llvm::sys; -extern "C" PIPSQUEAK_EXPORT const char *TestA() { return "ProcessCall"; } - std::string LibPath(const std::string Name = "PipSqueak") { const std::vector& Argvs = testing::internal::GetArgvs(); const char *Argv0 = Argvs.size() > 0 ? Argvs[0].c_str() : "DynamicLibraryTests"; -- cgit v1.2.3