diff options
author | Serge Guelton <sguelton@redhat.com> | 2020-06-25 05:57:01 -0400 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2020-06-25 16:14:38 -0700 |
commit | 04b0a4e22e3b4549f9d241f8a9f37eebecb62a31 (patch) | |
tree | cab06feaf14649ae516d3aad0a1adea9ab2cb006 | |
parent | 43ca67c05d2881d00075a15de555af1b19370294 (diff) | |
download | bcm5719-llvm-04b0a4e22e3b4549f9d241f8a9f37eebecb62a31.tar.gz bcm5719-llvm-04b0a4e22e3b4549f9d241f8a9f37eebecb62a31.zip |
Provide anchor for compiler extensions
-rw-r--r-- | llvm/lib/Extensions/Extensions.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/Extensions/Extensions.cpp b/llvm/lib/Extensions/Extensions.cpp index e69de29bb2d..2fe537f9187 100644 --- a/llvm/lib/Extensions/Extensions.cpp +++ b/llvm/lib/Extensions/Extensions.cpp @@ -0,0 +1,15 @@ +#include "llvm/Passes/PassPlugin.h" +#define HANDLE_EXTENSION(Ext) \ + llvm::PassPluginLibraryInfo get##Ext##PluginInfo(); +#include "llvm/Support/Extension.def" + + +namespace llvm { + namespace details { + void extensions_anchor() { +#define HANDLE_EXTENSION(Ext) \ + static auto Ext = get##Ext##PluginInfo(); +#include "llvm/Support/Extension.def" + } + } +} |