[lld] da324f9 - [LLD] [Mingw] Don't export symbols from profile generate
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 13:35:22 PDT 2020
Author: Peiyuan Song
Date: 2020-07-30T23:33:20+03:00
New Revision: da324f9904634855a0a3549284758cb079723cdf
URL: https://github.com/llvm/llvm-project/commit/da324f9904634855a0a3549284758cb079723cdf
DIFF: https://github.com/llvm/llvm-project/commit/da324f9904634855a0a3549284758cb079723cdf.diff
LOG: [LLD] [Mingw] Don't export symbols from profile generate
Differential Revision: https://reviews.llvm.org/D84756
Added:
Modified:
lld/COFF/MinGW.cpp
Removed:
################################################################################
diff --git a/lld/COFF/MinGW.cpp b/lld/COFF/MinGW.cpp
index bded985f04d0..e24cdca6ee34 100644
--- a/lld/COFF/MinGW.cpp
+++ b/lld/COFF/MinGW.cpp
@@ -34,6 +34,11 @@ AutoExporter::AutoExporter() {
"libclang_rt.builtins-arm",
"libclang_rt.builtins-i386",
"libclang_rt.builtins-x86_64",
+ "libclang_rt.profile",
+ "libclang_rt.profile-aarch64",
+ "libclang_rt.profile-arm",
+ "libclang_rt.profile-i386",
+ "libclang_rt.profile-x86_64",
"libc++",
"libc++abi",
"libunwind",
@@ -57,6 +62,10 @@ AutoExporter::AutoExporter() {
"__builtin_",
// Artificial symbols such as .refptr
".",
+ // profile generate symbols
+ "__profc_",
+ "__profd_",
+ "__profvp_",
};
excludeSymbolSuffixes = {
More information about the llvm-commits
mailing list