[llvm-commits] [llvm] r54459 - /llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp
Anton Korobeynikov
asl at math.spbu.ru
Thu Aug 7 02:54:40 PDT 2008
Author: asl
Date: Thu Aug 7 04:54:40 2008
New Revision: 54459
URL: http://llvm.org/viewvc/llvm-project?rev=54459&view=rev
Log:
Add assertion for easy debugging of missing stuff
Modified:
llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp
Modified: llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp?rev=54459&r1=54458&r2=54459&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp Thu Aug 7 04:54:40 2008
@@ -130,6 +130,8 @@
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);
More information about the llvm-commits
mailing list