summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-05-26 17:27:22 +0000
committerXinliang David Li <davidxl@google.com>2016-05-26 17:27:22 +0000
commitb02f3b141c3cf453b51af1cf2ea34f5e18da24cc (patch)
treefc30fcb5dc800c23a68561674cd1891112d35f03
parentb03322008503c2138cf5b2005986d17e3cf749a0 (diff)
downloadbcm5719-llvm-b02f3b141c3cf453b51af1cf2ea34f5e18da24cc.tar.gz
bcm5719-llvm-b02f3b141c3cf453b51af1cf2ea34f5e18da24cc.zip
Revert 270865 -- unexplained bot failure on linux/ppcle
llvm-svn: 270876
-rw-r--r--llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp2
1 files changed, 1 insertions, 1 deletions
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(
OpenPOWER on IntegriCloud