Use new interface in Triple /NFC

llvm-svn: 270865
This commit is contained in:
Xinliang David Li 2016-05-26 16:28:01 +00:00
parent a290c9b47a
commit 0777a93bee
1 changed files with 1 additions and 1 deletions

View File

@ -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(