From 3dd23a337c971fb3b24c76865d56d584e33b45f1 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 3 Jul 2014 14:12:37 +0000 Subject: [PATCH] clang-modernize: Instantiate llvm::Registry. llvm-svn: 212270 --- clang-tools-extra/clang-modernize/Core/Transform.cpp | 2 ++ clang-tools-extra/clang-modernize/Core/Transform.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/clang-tools-extra/clang-modernize/Core/Transform.cpp b/clang-tools-extra/clang-modernize/Core/Transform.cpp index 8b51395..6bb1478 100644 --- a/clang-tools-extra/clang-modernize/Core/Transform.cpp +++ b/clang-tools-extra/clang-modernize/Core/Transform.cpp @@ -21,6 +21,8 @@ #include "clang/Tooling/Tooling.h" #include "llvm/ADT/STLExtras.h" +template class llvm::Registry; + using namespace clang; llvm::cl::OptionCategory TransformsOptionsCategory("Transforms' options"); diff --git a/clang-tools-extra/clang-modernize/Core/Transform.h b/clang-tools-extra/clang-modernize/Core/Transform.h index 0cf94c9..ef6089b 100644 --- a/clang-tools-extra/clang-modernize/Core/Transform.h +++ b/clang-tools-extra/clang-modernize/Core/Transform.h @@ -322,4 +322,6 @@ protected: typedef llvm::Registry TransformFactoryRegistry; +extern template class llvm::Registry; + #endif // CLANG_MODERNIZE_TRANSFORM_H -- 2.7.4