[XCOFF][AIX] Put undefined symbol name into StringTable when neccessary
authorjasonliu <jasonliu.development@gmail.com>
Fri, 21 Feb 2020 17:20:45 +0000 (17:20 +0000)
committerjasonliu <jasonliu.development@gmail.com>
Fri, 21 Feb 2020 18:18:31 +0000 (18:18 +0000)
commit6b4a193defbe59b2b93e9d0289b2a7d9c2d842b9
tree3492164a2ace49cf99bd1bdf1cff598c5b024799
parentbc7b26c333f51b4b534abb81d597c0b86123718c
[XCOFF][AIX] Put undefined symbol name into StringTable when neccessary

Summary:
When we have a long name for the undefined symbol, we would hit this assertion:
Assertion failed: I != StringIndexMap.end() && "String is not in table!"
This patch addresses that.

Reviewed by: DiggerLin, daltenty

Differential Revision: https://reviews.llvm.org/D74924
llvm/lib/MC/XCOFFObjectWriter.cpp
llvm/test/CodeGen/PowerPC/aix-undef-func-call.ll