recommit [HIP] Fix -gsplit-dwarf option
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 14 Sep 2020 18:21:30 +0000 (14:21 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Wed, 23 Sep 2020 15:20:29 +0000 (11:20 -0400)
commite6d50b4f22dc6bbf0b0b40cfdab172bf5c1694e1
tree1c9c4aa62bde0d6f9cfb521ee2383e8b6c7c79a7
parentc2deacd929dabded734a478e78c1eef23aa459c5
recommit [HIP] Fix -gsplit-dwarf option

recommit e50465ecefc964e5700df26fc7e02a673eed085a with fix for
regression in lldb tests.

Two issues:

1. the directory part of original .dwo file was dropped
2. if the stem of the .dwo file contains '.', the last dot
and strings after that were removed

This recommit fixes those two issues.
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 [new file with mode: 0644]