diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2016-02-09 19:43:11 +0000 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2016-02-09 19:43:11 +0000 |
commit | 75b3a4b507fb9a55bd9840a8e4fa3854e7008f90 (patch) | |
tree | 42ef3c13673b3e4a437a121217be624fee2fbdac /clang/examples/PrintFunctionNames/PrintFunctionNames.cpp | |
parent | 3f8b09da3fb9a3b78d7813b4adc2ac5916c6f25b (diff) | |
download | bcm5719-llvm-75b3a4b507fb9a55bd9840a8e4fa3854e7008f90.tar.gz bcm5719-llvm-75b3a4b507fb9a55bd9840a8e4fa3854e7008f90.zip |
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
Diffstat (limited to 'clang/examples/PrintFunctionNames/PrintFunctionNames.cpp')
-rw-r--r-- | clang/examples/PrintFunctionNames/PrintFunctionNames.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp b/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp index 9f8f6e3f050..e2834b9ad23 100644 --- a/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp +++ b/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp @@ -121,3 +121,4 @@ protected: static FrontendPluginRegistry::Add<PrintFunctionNamesAction> X("print-fns", "print function names"); +LLVM_EXPORT_REGISTRY(FrontendPluginRegistry) |