[llvm] r270865 - Use new interface in Triple /NFC
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 09:28:02 PDT 2016
Author: davidxl
Date: Thu May 26 11:28:01 2016
New Revision: 270865
URL: http://llvm.org/viewvc/llvm-project?rev=270865&view=rev
Log:
Use new interface in Triple /NFC
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=270865&r1=270864&r2=270865&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp Thu May 26 11:28:01 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.isOSBinFormatMachO())
+ if (!TT.supportsCOMDAT())
IRLevelVersionVariable->setLinkage(GlobalValue::WeakAnyLinkage);
else
IRLevelVersionVariable->setComdat(M.getOrInsertComdat(
More information about the llvm-commits
mailing list