diff options
author | Eric Christopher <echristo@gmail.com> | 2018-06-21 07:15:14 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2018-06-21 07:15:14 +0000 |
commit | 76cfef46f3befef4f150a701b9f8b08a5046ec95 (patch) | |
tree | 733212353e6b02ff40bf702f9a7272bd91715a41 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | d36aa1f7633b5450c9939fe8aaa0da1605042868 (diff) | |
download | bcm5719-llvm-76cfef46f3befef4f150a701b9f8b08a5046ec95.tar.gz bcm5719-llvm-76cfef46f3befef4f150a701b9f8b08a5046ec95.zip |
Add some explanatory text to the associated symbol support.
llvm-svn: 335207
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |