clang-cl: Support loading plugins on Windows
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 9 Feb 2016 19:43:11 +0000 (19:43 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 9 Feb 2016 19:43:11 +0000 (19:43 +0000)
commit75b3a4b507fb9a55bd9840a8e4fa3854e7008f90
tree42ef3c13673b3e4a437a121217be624fee2fbdac
parent3f8b09da3fb9a3b78d7813b4adc2ac5916c6f25b
clang-cl: Support loading plugins on Windows

This builds on the support being added to LLVM to import and export
registries from DLLs.  This will allow us to pick up the registry
entries added in the DLL's copy of FrontendPluginRegistry.

This will allow us to use plugins on Windows using:
$ clang-cl -Xclang -load -Xclang plugin.dll \
           -Xclang -add-plugin -Xclang foo

llvm-svn: 260265
clang/docs/ClangPlugins.rst
clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp