[llvm-branch-commits] [llvm-branch] r81410 - /llvm/branches/release_26/lib/Target/TargetLoweringObjectFile.cpp
Tanya Lattner
tonic at nondot.org
Wed Sep 9 17:18:43 PDT 2009
Author: tbrethou
Date: Wed Sep 9 19:18:43 2009
New Revision: 81410
URL: http://llvm.org/viewvc/llvm-project?rev=81410&view=rev
Log:
Merge 81322 from mainline.
Provide proper section flags for various BSS flavours
Modified:
llvm/branches/release_26/lib/Target/TargetLoweringObjectFile.cpp
Modified: llvm/branches/release_26/lib/Target/TargetLoweringObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_26/lib/Target/TargetLoweringObjectFile.cpp?rev=81410&r1=81409&r2=81410&view=diff
==============================================================================
--- llvm/branches/release_26/lib/Target/TargetLoweringObjectFile.cpp (original)
+++ llvm/branches/release_26/lib/Target/TargetLoweringObjectFile.cpp Wed Sep 9 19:18:43 2009
@@ -439,8 +439,12 @@
if (Name[0] != '.') return K;
// Some lame default implementation based on some magic section names.
- if (strncmp(Name, ".gnu.linkonce.b.", 16) == 0 ||
+ if (strcmp(Name, ".bss") == 0 ||
+ strncmp(Name, ".bss.", 5) == 0 ||
+ strncmp(Name, ".gnu.linkonce.b.", 16) == 0 ||
strncmp(Name, ".llvm.linkonce.b.", 17) == 0 ||
+ strcmp(Name, ".sbss") == 0 ||
+ strncmp(Name, ".sbss.", 6) == 0 ||
strncmp(Name, ".gnu.linkonce.sb.", 17) == 0 ||
strncmp(Name, ".llvm.linkonce.sb.", 18) == 0)
return SectionKind::getBSS();
More information about the llvm-branch-commits
mailing list