From 1e27da3e6c19ebb6fb789edc0d678cf621f1a46e Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 7 Aug 2008 09:54:40 +0000 Subject: [PATCH] Add assertion for easy debugging of missing stuff git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54459 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ELFTargetAsmInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp index e6a40e7cec5..19e5b011945 100644 --- a/lib/Target/ELFTargetAsmInfo.cpp +++ b/lib/Target/ELFTargetAsmInfo.cpp @@ -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);