diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-01-25 15:05:36 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-01-25 15:05:36 +0000 |
| commit | 48340098988d87327ef4086f7047d92f9c1f85ce (patch) | |
| tree | ff3fe3c2da0b037de0f256429206d13da4c8671d /llvm | |
| parent | e4135ae6436084a478fd319d7ce32859d24bd78a (diff) | |
| download | bcm5719-llvm-48340098988d87327ef4086f7047d92f9c1f85ce.tar.gz bcm5719-llvm-48340098988d87327ef4086f7047d92f9c1f85ce.zip | |
Instantiate Registry<GCStrategy> in LLVMCore, to let it available on Win32 DLL.
llvm-svn: 227046
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/IR/GCStrategy.h | 3 | ||||
| -rw-r--r-- | llvm/lib/IR/GCStrategy.cpp | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/GCStrategy.h b/llvm/include/llvm/IR/GCStrategy.h index 15acfe443cd..c9b0a848ab7 100644 --- a/llvm/include/llvm/IR/GCStrategy.h +++ b/llvm/include/llvm/IR/GCStrategy.h @@ -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 diff --git a/llvm/lib/IR/GCStrategy.cpp b/llvm/lib/IR/GCStrategy.cpp index 56e6946daf6..b451310f7f0 100644 --- a/llvm/lib/IR/GCStrategy.cpp +++ b/llvm/lib/IR/GCStrategy.cpp @@ -14,6 +14,8 @@ #include "llvm/IR/GCStrategy.h" +template class llvm::Registry<llvm::GCStrategy>; + using namespace llvm; GCStrategy::GCStrategy() |

