[PATCH] D87791: [CUDA][HIP] Fix -gsplit option
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 16 13:27:42 PDT 2020
yaxunl created this revision.
yaxunl added reviewers: tra, MaskRay.
yaxunl requested review of this revision.
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
CUDA/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.
https://reviews.llvm.org/D87791
Files:
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/lib/Driver/ToolChains/CommonArgs.h
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/MinGW.cpp
clang/test/Driver/hip-gsplit-dwarf-options.hip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87791.292326.patch
Type: text/x-patch
Size: 5665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200916/e7d798ba/attachment.bin>
More information about the cfe-commits
mailing list