forked from OSchip/llvm-project
Driver: do not strip file extensions when printing diagnostics.
Before: clang-3: error: no input files After: clang-3.3: error: no input files This means that we'll also print clang.exe on windows, but I don't see a problem with that. llvm-svn: 176788
This commit is contained in:
parent
df17ddd56b
commit
b23fc91cdc
|
@ -417,7 +417,7 @@ int main(int argc_, const char **argv_) {
|
|||
// DiagnosticOptions instance.
|
||||
TextDiagnosticPrinter *DiagClient
|
||||
= new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts);
|
||||
DiagClient->setPrefix(llvm::sys::path::stem(Path.str()));
|
||||
DiagClient->setPrefix(llvm::sys::path::filename(Path.str()));
|
||||
IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
|
||||
|
||||
DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient);
|
||||
|
|
Loading…
Reference in New Issue