[all-commits] [llvm/llvm-project] d32fa5: [XCOFF] Don't emit non-external labels in the symb...

David Tenty via All-commits all-commits at lists.llvm.org
Thu Feb 27 10:37:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d32fa59fa007ba53b8453f96a5661b149e4715c7
      https://github.com/llvm/llvm-project/commit/d32fa59fa007ba53b8453f96a5661b149e4715c7
  Author: David Tenty <daltenty at ibm.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M llvm/lib/MC/MCXCOFFStreamer.cpp
    M llvm/lib/MC/XCOFFObjectWriter.cpp
    A llvm/test/CodeGen/PowerPC/aix-internal.ll
    M llvm/test/CodeGen/PowerPC/aix-xcoff-mergeable-const.ll
    M llvm/test/CodeGen/PowerPC/aix-xcoff-mergeable-str.ll

  Log Message:
  -----------
  [XCOFF] Don't emit non-external labels in the symbol table and handle MCSA_LGlobal

Summary:
We need to handle the  MCSA_LGlobal case in emitSymbolAttribute for functions marked internal in the IR so that the
appropriate storage class is emitted on the function descriptor csect.  As part of this we need to make sure that external
labels are not emitted into the symbol table, so we don't emit the descriptor label in the object writing path.

Reviewers: jasonliu, DiggerLin, hubert.reinterpretcast

Reviewed By: jasonliu

Subscribers: Xiangling_L, wuzish, nemanjai, hiraditya, jsji, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list