forked from OSchip/llvm-project
Add some explanatory text to the associated symbol support.
llvm-svn: 335207
This commit is contained in:
parent
d36aa1f763
commit
76cfef46f3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue