[all-commits] [llvm/llvm-project] e5000e: [XCOFF] make .file directive have directory info

Chen Zheng via All-commits all-commits at lists.llvm.org
Mon Apr 26 21:15:51 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e5000eef81354aa755caa25b317e205364f444e0
      https://github.com/llvm/llvm-project/commit/e5000eef81354aa755caa25b317e205364f444e0
  Author: Chen Zheng <czhengsz at cn.ibm.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

  Changed paths:
    M llvm/include/llvm/MC/MCAsmInfo.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/MC/MCAsmInfoXCOFF.cpp
    A llvm/test/CodeGen/PowerPC/aix-filename-absolute-path.ll
    A llvm/test/CodeGen/PowerPC/aix-filename-relative-path.ll

  Log Message:
  -----------
  [XCOFF] make .file directive have directory info

The .file directive is changed to only have basename in D36018 for
ELF.

But on AIX, we require the .file directive to also contain the
directory info. This aligns with other AIX compiler like XLC and is
required by some AIX tool like DBX.

Reviewed By: hubert.reinterpretcast

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




More information about the All-commits mailing list