From 008a5f515aca0412db4eb9c572c6a9aef956f39e Mon Sep 17 00:00:00 2001 From: Jordy Rose Date: Wed, 17 Aug 2011 18:38:42 +0000 Subject: [PATCH] Static fields require an out-of-line definition. Fix DynamicLibrary for real. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137844 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/DynamicLibrary.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Support/DynamicLibrary.cpp b/lib/Support/DynamicLibrary.cpp index 63298b99a0c..5ee6a82ad7b 100644 --- a/lib/Support/DynamicLibrary.cpp +++ b/lib/Support/DynamicLibrary.cpp @@ -50,6 +50,8 @@ void llvm::sys::DynamicLibrary::AddSymbol(StringRef symbolName, (*ExplicitSymbols)[symbolName] = symbolValue; } +char llvm::sys::DynamicLibrary::Invalid = 0; + #ifdef LLVM_ON_WIN32 #include "Windows/DynamicLibrary.inc" -- 2.34.1