projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f3cc65
)
Add assertion for easy debugging of missing stuff
author
Anton Korobeynikov
<asl@math.spbu.ru>
Thu, 7 Aug 2008 09:54:40 +0000
(09:54 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Thu, 7 Aug 2008 09:54:40 +0000
(09:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54459
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ELFTargetAsmInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ELFTargetAsmInfo.cpp
b/lib/Target/ELFTargetAsmInfo.cpp
index e6a40e7cec5b9dbc5aa5dac33683627fa97f8bbb..19e5b011945acd53de254cbb4d70cefac0aaf974 100644
(file)
--- 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);