summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-05-11 18:21:59 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-05-11 18:21:59 +0000
commit83658d6e7ac38a35dbbd9ef78b38b4705111e6c1 (patch)
tree671c7623bef0badf6f246c9a2d8a0ed750d4be0a /llvm/lib/CodeGen
parent3f61c1ab5eedcb8621060014f863579862a33e04 (diff)
downloadbcm5719-llvm-83658d6e7ac38a35dbbd9ef78b38b4705111e6c1.tar.gz
bcm5719-llvm-83658d6e7ac38a35dbbd9ef78b38b4705111e6c1.zip
Return a StringRef from getSection.
This is similar to how getName is handled. llvm-svn: 269218
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index ca02e8ea9ce..ed16eea8270 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1528,7 +1528,7 @@ bool AsmPrinter::EmitSpecialLLVMGlobal(const GlobalVariable *GV) {
}
// Ignore debug and non-emitted data. This handles llvm.compiler.used.
- if (StringRef(GV->getSection()) == "llvm.metadata" ||
+ if (GV->getSection() == "llvm.metadata" ||
GV->hasAvailableExternallyLinkage())
return true;
OpenPOWER on IntegriCloud