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:
parent
0c8d06f030
commit
5fa19dc20a
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user