This avoid pulling in the entire Passes library with all passes as dependencies when just referring to PassPlugin, which is in fact independent of the Passes themselves. Pull Request: https://github.com/llvm/llvm-project/pull/173279
16 lines
434 B
C++
16 lines
434 B
C++
#include "llvm/Plugins/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) \
|
|
get##Ext##PluginInfo();
|
|
#include "llvm/Support/Extension.def"
|
|
}
|
|
}
|
|
}
|