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 d36aa1f763
commit 76cfef46f3
1 changed files with 2 additions and 1 deletions

View File

@ -352,7 +352,8 @@ MCSection *TargetLoweringObjectFileELF::getExplicitSectionGlobal(
/*EntrySize=*/0, Group, UniqueID, AssociatedSymbol); /*EntrySize=*/0, Group, UniqueID, AssociatedSymbol);
// Make sure that we did not get some other section with incompatible sh_link. // Make sure that we did not get some other section with incompatible sh_link.
// This should not be possible due to UniqueID code above. // 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; return Section;
} }