summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit1c2de108619628dd57c00cc753d604a27fc2eea0 (patch)
tree50770191f92d01b18a96e91bacfe14f60f7410a9 /llvm/lib
parent04083529df043746990ab836304e0744a5a3a76c (diff)
downloadbcm5719-llvm-1c2de108619628dd57c00cc753d604a27fc2eea0.tar.gz
bcm5719-llvm-1c2de108619628dd57c00cc753d604a27fc2eea0.zip
Add assertion for easy debugging of missing stuff
llvm-svn: 54459
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ELFTargetAsmInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp
index e6a40e7cec5..19e5b011945 100644
--- a/llvm/lib/Target/ELFTargetAsmInfo.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud