mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-24 04:56:51 +00:00
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
This commit is contained in:
parent
0f3cc65738
commit
1e27da3e6c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user