From 0777a93bee8dc0ec69fdbd1ff4560de35a482af8 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Thu, 26 May 2016 16:28:01 +0000 Subject: Use new interface in Triple /NFC llvm-svn: 270865 --- llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index 835f75edcd2..9f980dad32c 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.isOSBinFormatMachO()) + if (!TT.supportsCOMDAT()) IRLevelVersionVariable->setLinkage(GlobalValue::WeakAnyLinkage); else IRLevelVersionVariable->setComdat(M.getOrInsertComdat( -- cgit v1.2.3