clang-cl: Use "clang cl.exe" when disambiguating the diagnostic prefix.

llvm-svn: 189909
This commit is contained in:
Reid Kleckner 2013-09-04 03:10:36 +00:00
parent b52922b1c5
commit 1d1844a7c7
1 changed files with 2 additions and 2 deletions

View File

@ -350,8 +350,8 @@ int main(int argc_, const char **argv_) {
// If the clang binary happens to be named cl.exe for compatibility reasons,
// use clang-cl.exe as the prefix to avoid confusion between clang and MSVC.
StringRef ExeBasename(llvm::sys::path::filename(Path));
if (ExeBasename.trim().equals_lower("cl.exe"))
ExeBasename = "clang-cl.exe";
if (ExeBasename.equals_lower("cl.exe"))
ExeBasename = "clang cl.exe";
DiagClient->setPrefix(ExeBasename);
IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());