AnnotateFunctions: Tweak for mingw.

- Externalize the registry.
  - Update libdeps.

llvm-svn: 265301
This commit is contained in:
NAKAMURA Takumi 2016-04-04 15:30:44 +00:00
parent 428a9f95a4
commit cacd94e242
3 changed files with 6 additions and 0 deletions

View 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()

View File

@ -1943,4 +1943,6 @@ typedef llvm::Registry<PragmaHandler> PragmaHandlerRegistry;
} // end namespace clang
extern template class llvm::Registry<clang::PragmaHandler>;
#endif

View File

@ -53,6 +53,8 @@
#include "llvm/Support/raw_ostream.h"
using namespace clang;
template class llvm::Registry<clang::PragmaHandler>;
//===----------------------------------------------------------------------===//
ExternalPreprocessorSource::~ExternalPreprocessorSource() { }