Add assertion for easy debugging of missing stuff
[oota-llvm.git] / lib / Target / ELFTargetAsmInfo.cpp
index e6a40e7cec5b9dbc5aa5dac33683627fa97f8bbb..19e5b011945acd53de254cbb4d70cefac0aaf974 100644 (file)
@@ -130,6 +130,8 @@ ELFTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const {
 
   unsigned Size = TD->getABITypeSize(Ty);
   if (Size <= 16) {
+    assert(getCStringSection() && "Should have string section prefix");
+
     // We also need alignment here
     const TargetData *TD = ETM->getTargetData();
     unsigned Align = TD->getPrefTypeAlignment(Ty);