[llvm] r271014 - Reapply r270865 -- previous bot failure is unrelated
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 09:22:04 PDT 2016
Author: davidxl
Date: Fri May 27 11:22:03 2016
New Revision: 271014
URL: http://llvm.org/viewvc/llvm-project?rev=271014&view=rev
Log:
Reapply r270865 -- previous bot failure is unrelated
Modified:
llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp?rev=271014&r1=271013&r2=271014&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp Fri May 27 11:22:03 2016
@@ -794,7 +794,7 @@ static void createIRLevelProfileFlagVari
INSTR_PROF_QUOTE(IR_LEVEL_PROF_VERSION_VAR));
IRLevelVersionVariable->setVisibility(GlobalValue::DefaultVisibility);
Triple TT(M.getTargetTriple());
- if (TT.isOSBinFormatMachO())
+ if (!TT.supportsCOMDAT())
IRLevelVersionVariable->setLinkage(GlobalValue::WeakAnyLinkage);
else
IRLevelVersionVariable->setComdat(M.getOrInsertComdat(
More information about the llvm-commits
mailing list