From 76cfef46f3befef4f150a701b9f8b08a5046ec95 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 21 Jun 2018 07:15:14 +0000 Subject: Add some explanatory text to the associated symbol support. llvm-svn: 335207 --- llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index b07e2f68264..03a1f6239f2 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/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; } -- cgit v1.2.3