Add some explanatory text to the associated symbol support.

llvm-svn: 335207
This commit is contained in:
Eric Christopher 2018-06-21 07:15:14 +00:00
parent 8aea145f98
commit f49a369583

View File

@ -352,7 +352,8 @@ MCSection *TargetLoweringObjectFileELF::getExplicitSectionGlobal(
/*EntrySize=*/0, Group, UniqueID, AssociatedSymbol);
// Make sure that we did not get some other section with incompatible sh_link.
// This should not be possible due to UniqueID code above.
assert(Section->getAssociatedSymbol() == AssociatedSymbol);
assert(Section->getAssociatedSymbol() == AssociatedSymbol &&
"Associated symbol mismatch between sections");
return Section;
}