]> granicus.if.org Git - clang/commit
[clang] - Simplify tools::SplitDebugName.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 5 Dec 2018 11:09:10 +0000 (11:09 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 5 Dec 2018 11:09:10 +0000 (11:09 +0000)
commitf0f02448497b9c2542ad6b22d4c68a7232683e0b
tree553137b7bd36b4fa03e3e9baf1b55d54e8c9d035
parent0635952db651b10442fa25b2e06573322fdd9a23
[clang] - Simplify tools::SplitDebugName.

This is an updated version of the D54576, which was reverted.

Problem was that SplitDebugName calls the InputInfo::getFilename
which asserts if InputInfo given is not of type Filename:

const char *getFilename() const {
  assert(isFilename() && "Invalid accessor.");
  return Data.Filename;
}
At the same time at that point, it can be of type Nothing and
we need to use getBaseInput(), like original code did.

Differential revision: https://reviews.llvm.org/D55006

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348352 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
lib/Driver/ToolChains/CommonArgs.cpp
lib/Driver/ToolChains/CommonArgs.h
lib/Driver/ToolChains/Gnu.cpp
lib/Driver/ToolChains/MinGW.cpp
test/Tooling/clang-check-extra-arg.cpp