[llvm] r209064 - Target: Replace getSection().empty() with hasSection()
David Majnemer
david.majnemer at gmail.com
Fri May 16 22:18:40 PDT 2014
Author: majnemer
Date: Sat May 17 00:18:40 2014
New Revision: 209064
URL: http://llvm.org/viewvc/llvm-project?rev=209064&view=rev
Log:
Target: Replace getSection().empty() with hasSection()
No functional change, just a small cleanup.
Modified:
llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
Modified: llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp?rev=209064&r1=209063&r2=209064&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp Sat May 17 00:18:40 2014
@@ -62,7 +62,7 @@ static bool isSuitableForBSS(const Globa
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.
More information about the llvm-commits
mailing list