[PATCH] D16760: Add support for importing and exporting Registry objects on Windows

Ehsan Akhgari via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 31 15:57:51 PST 2016


ehsan created this revision.
ehsan added a reviewer: rnk.
ehsan added a subscriber: llvm-commits.

On Windows, the DLL containing the registry will get its own global head
and tail variables, so the entries registered in the DLL will be
invisible to the consumer.

In order to solve this, we need to export a getter function from the
plugin DLL per registry and copy over the data inside it.  This patch
adds support for this.  This will be used to support clang plugins on
Windows.

Turn on LLVM_ENABLE_PLUGINS by default on Windows

http://reviews.llvm.org/D16760

Files:
  cmake/modules/HandleLLVMOptions.cmake
  include/llvm/Support/Registry.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16760.46498.patch
Type: text/x-patch
Size: 3516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160131/ff1df19f/attachment.bin>


More information about the llvm-commits mailing list