summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-05-26 16:28:01 +0000
committerXinliang David Li <davidxl@google.com>2016-05-26 16:28:01 +0000
commit0777a93bee8dc0ec69fdbd1ff4560de35a482af8 (patch)
tree39efff9384a4b95ef2582665d04421b97da89884 /llvm/lib
parenta290c9b47a4bafc655c783e3b5fbdb9a602efea9 (diff)
downloadbcm5719-llvm-0777a93bee8dc0ec69fdbd1ff4560de35a482af8.tar.gz
bcm5719-llvm-0777a93bee8dc0ec69fdbd1ff4560de35a482af8.zip
Use new interface in Triple /NFC
llvm-svn: 270865
Diffstat (limited to 'llvm/lib')
-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 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(
OpenPOWER on IntegriCloud