summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-05-17 05:18:40 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-05-17 05:18:40 +0000
commit483e4e08ac5fa8877c416abe616f4025a5332cd0 (patch)
tree2cfc219eca665890e5bc79de8e8c937c454176bf /llvm/lib
parent9ab2cd03018ce5777b553e6587ef081221ccfac2 (diff)
downloadbcm5719-llvm-483e4e08ac5fa8877c416abe616f4025a5332cd0.tar.gz
bcm5719-llvm-483e4e08ac5fa8877c416abe616f4025a5332cd0.zip
Target: Replace getSection().empty() with hasSection()
No functional change, just a small cleanup. llvm-svn: 209064
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index 2f37ede4402..39e045919ab 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -62,7 +62,7 @@ static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) {
return false;
// If the global has an explicit section specified, don't put it in BSS.
- if (!GV->getSection().empty())
+ if (GV->hasSection())
return false;
// If -nozero-initialized-in-bss is specified, don't ever use BSS.
OpenPOWER on IntegriCloud