[llvm] r227046 - Instantiate Registry<GCStrategy> in LLVMCore, to let it available on Win32 DLL.
NAKAMURA Takumi
geek4civic at gmail.com
Sun Jan 25 07:05:37 PST 2015
Author: chapuni
Date: Sun Jan 25 09:05:36 2015
New Revision: 227046
URL: http://llvm.org/viewvc/llvm-project?rev=227046&view=rev
Log:
Instantiate Registry<GCStrategy> in LLVMCore, to let it available on Win32 DLL.
Modified:
llvm/trunk/include/llvm/IR/GCStrategy.h
llvm/trunk/lib/IR/GCStrategy.cpp
Modified: llvm/trunk/include/llvm/IR/GCStrategy.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/GCStrategy.h?rev=227046&r1=227045&r2=227046&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/GCStrategy.h (original)
+++ llvm/trunk/include/llvm/IR/GCStrategy.h Sun Jan 25 09:05:36 2015
@@ -188,6 +188,9 @@ public:
/// register your GCMetadataPrinter subclass with the
/// GCMetadataPrinterRegistery as well.
typedef Registry<GCStrategy> GCRegistry;
+
+/// GCStrategy is instantiated in GCStrategy.cpp.
+extern template class Registry<GCStrategy>;
}
#endif
Modified: llvm/trunk/lib/IR/GCStrategy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/GCStrategy.cpp?rev=227046&r1=227045&r2=227046&view=diff
==============================================================================
--- llvm/trunk/lib/IR/GCStrategy.cpp (original)
+++ llvm/trunk/lib/IR/GCStrategy.cpp Sun Jan 25 09:05:36 2015
@@ -14,6 +14,8 @@
#include "llvm/IR/GCStrategy.h"
+template class llvm::Registry<llvm::GCStrategy>;
+
using namespace llvm;
GCStrategy::GCStrategy()
More information about the llvm-commits
mailing list