aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ELFTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-08-07 09:54:40 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-08-07 09:54:40 +0000
commitfb4bf865e8223b7a00e50241919cbe1097c47743 (patch)
treebd0bcf047f1bb27b6b41f091c42a62d11c66c241 /lib/Target/ELFTargetAsmInfo.cpp
parent3cc6efa84bf118b262343b5f15754a4f5d3a6dd2 (diff)
downloadexternal_llvm-fb4bf865e8223b7a00e50241919cbe1097c47743.zip
external_llvm-fb4bf865e8223b7a00e50241919cbe1097c47743.tar.gz
external_llvm-fb4bf865e8223b7a00e50241919cbe1097c47743.tar.bz2
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
Diffstat (limited to 'lib/Target/ELFTargetAsmInfo.cpp')
-rw-r--r--lib/Target/ELFTargetAsmInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp
index e6a40e7..19e5b01 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);