Target: Replace getSection().empty() with hasSection()
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 17 May 2014 05:18:40 +0000 (05:18 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 17 May 2014 05:18:40 +0000 (05:18 +0000)
No functional change, just a small cleanup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209064 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetLoweringObjectFile.cpp

index 2f37ede4402a3c4ddf70f20c500253fa9eb1e45c..39e045919ab0d47206474586823a399b0cf498a0 100644 (file)
@@ -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.