mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 23:36:06 +00:00

This patch is cherry-picked from 04b0a4e22e3b4549f9d241f8a9f37eebecb62a31, and amended to prevent an undefined reference to `llvm::EnableABIBreakingChecks'
16 lines
451 B
C++
16 lines
451 B
C++
#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"
|
|
}
|
|
}
|
|
}
|