1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Add assertion for easy debugging of missing stuff

llvm-svn: 54459
This commit is contained in:
Anton Korobeynikov 2008-08-07 09:54:40 +00:00
parent 0c8d06f030
commit 5fa19dc20a

View File

@ -130,6 +130,8 @@ ELFTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const {
unsigned Size = TD->getABITypeSize(Ty); unsigned Size = TD->getABITypeSize(Ty);
if (Size <= 16) { if (Size <= 16) {
assert(getCStringSection() && "Should have string section prefix");
// We also need alignment here // We also need alignment here
const TargetData *TD = ETM->getTargetData(); const TargetData *TD = ETM->getTargetData();
unsigned Align = TD->getPrefTypeAlignment(Ty); unsigned Align = TD->getPrefTypeAlignment(Ty);