OSDN Git Service

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)
commit91597813b42379e7ee02648a2bac7df038ed6d2d
treea4307dad297e036ab34c68722b08d90a1d8826c5
parent41dc0a6d103cf4f160741d5dd52e9be92a29d8e8
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260261 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Registry.h