Instantiate Registry<GCStrategy> in LLVMCore, to let it available on Win32 DLL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227046 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2015-01-25 15:05:36 +00:00
parent 09a46075ee
commit 5bccc06f8d
2 changed files with 5 additions and 0 deletions

View File

@ -188,6 +188,9 @@ public:
/// register your GCMetadataPrinter subclass with the /// register your GCMetadataPrinter subclass with the
/// GCMetadataPrinterRegistery as well. /// GCMetadataPrinterRegistery as well.
typedef Registry<GCStrategy> GCRegistry; typedef Registry<GCStrategy> GCRegistry;
/// GCStrategy is instantiated in GCStrategy.cpp.
extern template class Registry<GCStrategy>;
} }
#endif #endif

View File

@ -14,6 +14,8 @@
#include "llvm/IR/GCStrategy.h" #include "llvm/IR/GCStrategy.h"
template class llvm::Registry<llvm::GCStrategy>;
using namespace llvm; using namespace llvm;
GCStrategy::GCStrategy() GCStrategy::GCStrategy()