[PATCH] D27813: [clang-tidy] fix missing anchor for MPI Module
Piotr Padlewski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 16 01:25:10 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL289930: [clang-tidy] fix missing anchor for MPI Module (authored by Prazek).
Changed prior to commit:
https://reviews.llvm.org/D27813?vs=81593&id=81723#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27813
Files:
clang-tools-extra/trunk/clang-tidy/plugin/ClangTidyPlugin.cpp
Index: clang-tools-extra/trunk/clang-tidy/plugin/ClangTidyPlugin.cpp
===================================================================
--- clang-tools-extra/trunk/clang-tidy/plugin/ClangTidyPlugin.cpp
+++ clang-tools-extra/trunk/clang-tidy/plugin/ClangTidyPlugin.cpp
@@ -108,6 +108,11 @@
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 =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27813.81723.patch
Type: text/x-patch
Size: 795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161216/4ee77ab7/attachment-0001.bin>
More information about the cfe-commits
mailing list