r265301 - AnnotateFunctions: Tweak for mingw.
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 4 08:30:44 PDT 2016
Author: chapuni
Date: Mon Apr 4 10:30:44 2016
New Revision: 265301
URL: http://llvm.org/viewvc/llvm-project?rev=265301&view=rev
Log:
AnnotateFunctions: Tweak for mingw.
- Externalize the registry.
- Update libdeps.
Modified:
cfe/trunk/examples/AnnotateFunctions/CMakeLists.txt
cfe/trunk/include/clang/Lex/Preprocessor.h
cfe/trunk/lib/Lex/Preprocessor.cpp
Modified: cfe/trunk/examples/AnnotateFunctions/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/AnnotateFunctions/CMakeLists.txt?rev=265301&r1=265300&r2=265301&view=diff
==============================================================================
--- cfe/trunk/examples/AnnotateFunctions/CMakeLists.txt (original)
+++ cfe/trunk/examples/AnnotateFunctions/CMakeLists.txt Mon Apr 4 10:30:44 2016
@@ -3,7 +3,9 @@ add_llvm_loadable_module(AnnotateFunctio
if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
target_link_libraries(AnnotateFunctions ${cmake_2_8_12_PRIVATE}
clangAST
+ clangBasic
clangFrontend
+ clangLex
LLVMSupport
)
endif()
Modified: cfe/trunk/include/clang/Lex/Preprocessor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Preprocessor.h?rev=265301&r1=265300&r2=265301&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Preprocessor.h (original)
+++ cfe/trunk/include/clang/Lex/Preprocessor.h Mon Apr 4 10:30:44 2016
@@ -1943,4 +1943,6 @@ typedef llvm::Registry<PragmaHandler> Pr
} // end namespace clang
+extern template class llvm::Registry<clang::PragmaHandler>;
+
#endif
Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=265301&r1=265300&r2=265301&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Mon Apr 4 10:30:44 2016
@@ -53,6 +53,8 @@
#include "llvm/Support/raw_ostream.h"
using namespace clang;
+template class llvm::Registry<clang::PragmaHandler>;
+
//===----------------------------------------------------------------------===//
ExternalPreprocessorSource::~ExternalPreprocessorSource() { }
More information about the cfe-commits
mailing list