[Driver] Use stem rather than filename for executable name
authorPetr Hosek <phosek@chromium.org>
Mon, 17 Oct 2016 22:02:53 +0000 (22:02 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 17 Oct 2016 22:02:53 +0000 (22:02 +0000)
commitb406388e5fa92ccfd792fbabe42411d28f5ce48a
treec976f528e21ce473cbfafb6a6baadd1875072962
parent9d58e362d21264df216cb6ca2e6f7d0e421061ab
[Driver] Use stem rather than filename for executable name

When comparing the linker name in Fuchsia driver, use stem rather
than filename to get the name of the linker becase on Windows, the
filename will have an extension.

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

llvm-svn: 284430
clang/lib/Driver/Tools.cpp