[all-commits] [llvm/llvm-project] e50465: [HIP] Fix -gsplit-dwarf option

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Sat Sep 19 07:07:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e50465ecefc964e5700df26fc7e02a673eed085a
      https://github.com/llvm/llvm-project/commit/e50465ecefc964e5700df26fc7e02a673eed085a
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-09-19 (Sat, 19 Sep 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.h
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/lib/Driver/ToolChains/MinGW.cpp
    A clang/test/Driver/hip-gsplit-dwarf-options.hip

  Log Message:
  -----------
  [HIP] Fix -gsplit-dwarf option

when -gsplit option is used with clang driver, clang driver will create
a filename with .dwo option based on the input file name and pass
it to clang -cc1. This file is used for storing the debug info. Since
HIP generate separate object files for different GPU arch's,
this file should be different for different GPU arch. This patch
adds _ and GPU arch to the stem of the dwo file.

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




More information about the All-commits mailing list