AnnotateFunctions: Tweak for mingw.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 4 Apr 2016 15:30:44 +0000 (15:30 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 4 Apr 2016 15:30:44 +0000 (15:30 +0000)
  - Externalize the registry.
  - Update libdeps.

llvm-svn: 265301

clang/examples/AnnotateFunctions/CMakeLists.txt
clang/include/clang/Lex/Preprocessor.h
clang/lib/Lex/Preprocessor.cpp

index 5aa6a90..10e16f2 100644 (file)
@@ -3,7 +3,9 @@ add_llvm_loadable_module(AnnotateFunctions AnnotateFunctions.cpp)
 if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
   target_link_libraries(AnnotateFunctions ${cmake_2_8_12_PRIVATE}
     clangAST
+    clangBasic
     clangFrontend
+    clangLex
     LLVMSupport
     )
 endif()
index f7a9ea9..817c09f 100644 (file)
@@ -1943,4 +1943,6 @@ typedef llvm::Registry<PragmaHandler> PragmaHandlerRegistry;
 
 }  // end namespace clang
 
+extern template class llvm::Registry<clang::PragmaHandler>;
+
 #endif
index 70b9921..297b556 100644 (file)
@@ -53,6 +53,8 @@
 #include "llvm/Support/raw_ostream.h"
 using namespace clang;
 
+template class llvm::Registry<clang::PragmaHandler>;
+
 //===----------------------------------------------------------------------===//
 ExternalPreprocessorSource::~ExternalPreprocessorSource() { }