diff options
| author | Piotr Padlewski <piotr.padlewski@gmail.com> | 2016-12-16 09:14:47 +0000 |
|---|---|---|
| committer | Piotr Padlewski <piotr.padlewski@gmail.com> | 2016-12-16 09:14:47 +0000 |
| commit | 28da40085464f4260d86f82a38216ced72926d07 (patch) | |
| tree | d47f62272d002188317830663fd6a282ad160b0e /clang-tools-extra/clang-tidy/plugin | |
| parent | 05e80d31bddd62fc34a47f9aac275fb0ca896c0a (diff) | |
| download | bcm5719-llvm-28da40085464f4260d86f82a38216ced72926d07.tar.gz bcm5719-llvm-28da40085464f4260d86f82a38216ced72926d07.zip | |
[clang-tidy] fix missing anchor for MPI Module
Summary: MPIModule was not linked to plugins
Reviewers: alexfh, Alexander_Droste, hokein
Subscribers: JDevlieghere, cfe-commits
Differential Revision: https://reviews.llvm.org/D27813
llvm-svn: 289930
Diffstat (limited to 'clang-tools-extra/clang-tidy/plugin')
| -rw-r--r-- | clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp b/clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp index 19509a5279b..1e6346c2ebd 100644 --- a/clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp +++ b/clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp @@ -108,6 +108,11 @@ extern volatile int ModernizeModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination = ModernizeModuleAnchorSource; +// This anchor is used to force the linker to link the MPIModule. +extern volatile int MPIModuleAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination = + MPIModuleAnchorSource; + // This anchor is used to force the linker to link the PerformanceModule. extern volatile int PerformanceModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED PerformanceModuleAnchorDestination = |

