[PATCH] D71125: [AIX] Avoid unset csect assert for functions defined after their use in TOC

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 6 08:57:29 PST 2019


daltenty created this revision.
Herald added subscribers: llvm-commits, jsji, kbarton, hiraditya, nemanjai.
Herald added a project: LLVM.
daltenty added reviewers: Xiangling_L, DiggerLin, jasonliu.
Herald added a subscriber: wuzish.

If a function is defined after it appears in a TOC expression, we may
try to access an unset containing csect when returning a symbol for the
expression.

Also fix a potential issue where we set the function descriptors storage
class as HIDEXT.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71125

Files:
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/test/CodeGen/PowerPC/aix-func-dsc-gen.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-toc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71125.232583.patch
Type: text/x-patch
Size: 7195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191206/1aaf29c3/attachment.bin>


More information about the llvm-commits mailing list