[PATCH] D71667: [XCOFF][AIX] Fix for missing of undefined symbols from symbol table

Jason Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 14:04:22 PST 2019


jasonliu marked an inline comment as done.
jasonliu added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-toc.ll:73
 ; SYM:       File: {{.*}}aix-xcoff-toc.ll.tmp.o
-; SYM:       Symbol {{[{][[:space:]] *}}Index: [[#INDX:]]{{[[:space:]] *}}Name: TOC
+; SYM:       Symbol {{[{][[:space:]] *}}Index: [[#UNDEF_INDX:]]{{[[:space:]] *}}Name: a
+; SYM-NEXT:   Value (RelocatableAddress): 0x0
----------------
jasonliu wrote:
> daltenty wrote:
> > My only concern here is that maybe these don't belong in this testcase. This test case tests exclusively TOC related functionality currently. Perhaps adding an undef test would be better (and possibly folding some of the undef function tests into it).
> I thought about making a separate test case. But I figure I would write out similar llvm IR in order to trigger a undefined variable and undefined function descriptor generation.
> So I think it's actually a good fit to put them together. In fact, it is precisely lack of those tests in this file so that  we didn't find this bug in the first place. 
As discussed offline, I will put comments in this unit test to indicate what we are testing here. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71667/new/

https://reviews.llvm.org/D71667





More information about the llvm-commits mailing list