| 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // Anchor for pass plugins. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "llvm/Plugins/PassPlugin.h" |
| 14 | |
| 15 | #define HANDLE_EXTENSION(Ext) \ |
| 16 | llvm::PassPluginLibraryInfo get##Ext##PluginInfo(); |
| 17 | #include "llvm/Support/Extension.def" |
| 18 | #undef HANDLE_EXTENSION |
| 19 | |
| 20 | namespace llvm::details { |
| 21 | void extensions_anchor() { |
| 22 | #define HANDLE_EXTENSION(Ext) \ |
| 23 | get##Ext##PluginInfo(); |
| 24 | #include "llvm/Support/Extension.def" |
| 25 | } |
| 26 | } // namespace llvm::details |
| 27 | |