[all-commits] [llvm/llvm-project] 61b5e7: [AIX] Use csect reference for function address con...

diggerlin via All-commits all-commits at lists.llvm.org
Mon Jan 6 08:38:42 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 61b5e727b7ccfca7e0cbb0ed70f9e828cd1514bd
      https://github.com/llvm/llvm-project/commit/61b5e727b7ccfca7e0cbb0ed70f9e828cd1514bd
  Author: diggerlin <digger.llvm at gmail.com>
  Date:   2020-01-06 (Mon, 06 Jan 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
    A llvm/test/CodeGen/PowerPC/aix-reference-func-addr-const.ll

  Log Message:
  -----------
  [AIX] Use csect reference for function address constants

SUMMARY:
We currently emit a reference for function address constants as labels;
for example:

foo_ptr:
.long foo
however, there may be no such label in the case where the function is
undefined. Although the label exists when the function is defined, we
will (to be consistent) also use a csect reference in that case.

Reviewers: daltenty,hubert.reinterpretcast,jasonliu,Xiangling_L
Subscribers: cebowleratibm, wuzish, nemanjai

Differential Revision: https://reviews.llvm.org/D71144




More information about the All-commits mailing list