[llvm] r270876 - Revert 270865 -- unexplained bot failure on linux/ppcle
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 10:27:22 PDT 2016
Author: davidxl
Date: Thu May 26 12:27:22 2016
New Revision: 270876
URL: http://llvm.org/viewvc/llvm-project?rev=270876&view=rev
Log:
Revert 270865 -- unexplained bot failure on linux/ppcle
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=270876&r1=270875&r2=270876&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp Thu May 26 12:27:22 2016
@@ -790,7 +790,7 @@ static void createIRLevelProfileFlagVari
INSTR_PROF_QUOTE(IR_LEVEL_PROF_VERSION_VAR));
IRLevelVersionVariable->setVisibility(GlobalValue::DefaultVisibility);
Triple TT(M.getTargetTriple());
- if (!TT.supportsCOMDAT())
+ if (TT.isOSBinFormatMachO())
IRLevelVersionVariable->setLinkage(GlobalValue::WeakAnyLinkage);
else
IRLevelVersionVariable->setComdat(M.getOrInsertComdat(
More information about the llvm-commits
mailing list