Skip to content
Snippets Groups Projects
Commit a3953a1c authored by NAKAMURA Takumi's avatar NAKAMURA Takumi
Browse files

Instantiate llvm::Registry<clang::PluginASTAction> in FrontendAction.cpp.

  - Plugins don't need to export _ZN4llvm8Registry*.
  - Win32.DLL cannot merge common symbols among DLLs. Static members in llvm::Registry should be instantiated in a parent.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212821 91177308-0d34-0410-b5e6-96231b3b80d8
parent 4257081b
No related branches found
No related tags found
No related merge requests found
_ZN4llvm8Registry*
......@@ -13,6 +13,9 @@
#include "clang/Frontend/FrontendAction.h"
#include "llvm/Support/Registry.h"
// Instantiated in FrontendAction.cpp.
extern template class llvm::Registry<clang::PluginASTAction>;
namespace clang {
/// The frontend plugin registry.
......
......@@ -32,6 +32,8 @@
#include <system_error>
using namespace clang;
template class llvm::Registry<clang::PluginASTAction>;
namespace {
class DelegatingDeserializationListener : public ASTDeserializationListener {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment