diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-05-17 05:18:40 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-05-17 05:18:40 +0000 |
commit | 483e4e08ac5fa8877c416abe616f4025a5332cd0 (patch) | |
tree | 2cfc219eca665890e5bc79de8e8c937c454176bf /llvm/lib | |
parent | 9ab2cd03018ce5777b553e6587ef081221ccfac2 (diff) | |
download | bcm5719-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.cpp | 2 |
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. |