Rename getABITypeSize to getTypePaddedSize, as
[oota-llvm.git] / lib / Target / Sparc / SparcTargetAsmInfo.cpp
index afa5327d952572be2cdf2dad7d2aaa2765bbeae7..c13d45ceec7cf9ad209dc450cfe69b6f898388fb 100644 (file)
@@ -25,6 +25,11 @@ SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM):
   ConstantPoolSection = "\t.section \".rodata\",#alloc\n";
   COMMDirectiveTakesAlignment = true;
   CStringSection=".rodata.str";
+
+  // Sparc normally uses named section for BSS.
+  BSSSection_  = getNamedSection("\t.bss",
+                                 SectionFlags::Writeable | SectionFlags::BSS,
+                                 /* Override */ true);
 }
 
 std::string SparcELFTargetAsmInfo::printSectionFlags(unsigned flags) const {