From: Eric Christopher Date: Thu, 21 Jun 2018 07:15:14 +0000 (+0000) Subject: Add some explanatory text to the associated symbol support. X-Git-Tag: android-x86-8.1-r1~1842 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=54da16e23ffb5e0c8323d48df02a91b045c9aabf;p=android-x86%2Fexternal-llvm.git Add some explanatory text to the associated symbol support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335207 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index b07e2f68264..03a1f6239f2 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -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; }