summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-05-25 17:17:51 +0000
committerXinliang David Li <davidxl@google.com>2016-05-25 17:17:51 +0000
commita228608b26adb03c0863c39cc17e4de8b2e0ca4c (patch)
tree80f2a83ee30f4ec87dfa8210368655b120468d36
parentd509fcf4f4a3bf6d8364ff814504da1a25204eec (diff)
downloadbcm5719-llvm-a228608b26adb03c0863c39cc17e4de8b2e0ca4c.tar.gz
bcm5719-llvm-a228608b26adb03c0863c39cc17e4de8b2e0ca4c.zip
Use new triple API to check if comdat is supported
llvm-svn: 270727
-rw-r--r--llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index 120ed18b06e..d2f5b29e24b 100644
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -550,7 +550,7 @@ void InstrProfiling::emitRuntimeHook() {
User->addFnAttr(Attribute::NoInline);
if (Options.NoRedZone) User->addFnAttr(Attribute::NoRedZone);
User->setVisibility(GlobalValue::HiddenVisibility);
- if (Triple(M->getTargetTriple()).isOSBinFormatCOFF())
+ if (Triple(M->getTargetTriple()).supportsCOMDAT())
User->setComdat(M->getOrInsertComdat(User->getName()));
IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", User));
OpenPOWER on IntegriCloud