[clang-tools-extra] r212270 - clang-modernize: Instantiate llvm::Registry<TransformFactory>.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Jul 3 07:12:37 PDT 2014
Author: chapuni
Date: Thu Jul 3 09:12:37 2014
New Revision: 212270
URL: http://llvm.org/viewvc/llvm-project?rev=212270&view=rev
Log:
clang-modernize: Instantiate llvm::Registry<TransformFactory>.
Modified:
clang-tools-extra/trunk/clang-modernize/Core/Transform.cpp
clang-tools-extra/trunk/clang-modernize/Core/Transform.h
Modified: clang-tools-extra/trunk/clang-modernize/Core/Transform.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/Core/Transform.cpp?rev=212270&r1=212269&r2=212270&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/Core/Transform.cpp (original)
+++ clang-tools-extra/trunk/clang-modernize/Core/Transform.cpp Thu Jul 3 09:12:37 2014
@@ -21,6 +21,8 @@
#include "clang/Tooling/Tooling.h"
#include "llvm/ADT/STLExtras.h"
+template class llvm::Registry<TransformFactory>;
+
using namespace clang;
llvm::cl::OptionCategory TransformsOptionsCategory("Transforms' options");
Modified: clang-tools-extra/trunk/clang-modernize/Core/Transform.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/Core/Transform.h?rev=212270&r1=212269&r2=212270&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/Core/Transform.h (original)
+++ clang-tools-extra/trunk/clang-modernize/Core/Transform.h Thu Jul 3 09:12:37 2014
@@ -322,4 +322,6 @@ protected:
typedef llvm::Registry<TransformFactory> TransformFactoryRegistry;
+extern template class llvm::Registry<TransformFactory>;
+
#endif // CLANG_MODERNIZE_TRANSFORM_H
More information about the cfe-commits
mailing list