SectionFlags::Mergeable);
EightByteConstantSection_ = getUnnamedSection("\t.literal8\n",
SectionFlags::Mergeable);
- // FIXME: Check for 64 bit
- SixteenByteConstantSection_ = getUnnamedSection("\t.literal16\n",
- SectionFlags::Mergeable);
+ // Note: 16-byte constant section is subtarget specific and should be provided
+ // there.
+
ReadOnlySection_ = getUnnamedSection("\t.const\n", SectionFlags::None);
// FIXME: These should be named sections, really.
return FourByteConstantSection_;
else if (Size == 8)
return EightByteConstantSection_;
- // FIXME: 64 bit
- /*else if (Size == 16 && DTM->getSubtarget<X86Subtarget>().is64Bit())
- return SixteenByteConstantSection_;*/
+ else if (Size == 16 && SixteenByteConstantSection_)
+ return SixteenByteConstantSection_;
return getReadOnlySection_();
}
// FIXME: Why don't always use this section?
if (is64Bit) {
SixteenByteConstantSection = "\t.literal16\n";
+ SixteenByteConstantSection_ = getUnnamedSection("\t.literal16\n",
+ SectionFlags::Mergeable);
}
ReadOnlySection = "\t.const\n";