Add support for importing and exporting Registry objects on Windows
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 9 Feb 2016 19:37:25 +0000 (19:37 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 9 Feb 2016 19:37:25 +0000 (19:37 +0000)
commit6b484025ce9da1250721352fd1a5f357a02e3f34
tree99aaae4e17180125c3f427281cf12079494710e1
parentc46ef8876b7aec2d0bda9a9a1810526d4e5903bb
Add support for importing and exporting Registry objects on Windows

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.

llvm-svn: 260261
llvm/include/llvm/Support/Registry.h