From 669b52439916645b37d01c360c35d86b46617743 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 9 Nov 2004 04:24:59 +0000 Subject: [PATCH] Output the program name (in this case, gccld) with warning about invalid files git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17638 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkArchives.cpp | 3 ++- tools/gccld/Linker.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Linker/LinkArchives.cpp b/lib/Linker/LinkArchives.cpp index 2194e0e4bc0..82b984842b3 100644 --- a/lib/Linker/LinkArchives.cpp +++ b/lib/Linker/LinkArchives.cpp @@ -346,7 +346,8 @@ bool llvm::LinkFiles(const char *progname, Module *HeadModule, return true; } } else { - std::cerr << "Warning: invalid file `" << Pathname << "' ignored.\n"; + std::cerr << progname << ": Warning: invalid file `" << Pathname + << "' ignored.\n"; } } diff --git a/tools/gccld/Linker.cpp b/tools/gccld/Linker.cpp index 2194e0e4bc0..82b984842b3 100644 --- a/tools/gccld/Linker.cpp +++ b/tools/gccld/Linker.cpp @@ -346,7 +346,8 @@ bool llvm::LinkFiles(const char *progname, Module *HeadModule, return true; } } else { - std::cerr << "Warning: invalid file `" << Pathname << "' ignored.\n"; + std::cerr << progname << ": Warning: invalid file `" << Pathname + << "' ignored.\n"; } }