From b02f3b141c3cf453b51af1cf2ea34f5e18da24cc Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Thu, 26 May 2016 17:27:22 +0000 Subject: Revert 270865 -- unexplained bot failure on linux/ppcle llvm-svn: 270876 --- llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp') diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index 9f980dad32c..835f75edcd2 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -790,7 +790,7 @@ static void createIRLevelProfileFlagVariable(Module &M) { 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( -- cgit v1.2.3