From: Jordy Rose Date: Wed, 17 Aug 2011 18:38:42 +0000 (+0000) Subject: Static fields require an out-of-line definition. Fix DynamicLibrary for real. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=008a5f515aca0412db4eb9c572c6a9aef956f39e;p=oota-llvm.git 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 --- 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"