diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-30 21:43:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-30 21:43:25 +0000 |
commit | d4c7f2766bcf2cf87e562ea4e71cb4b54d81b74e (patch) | |
tree | 5a811d0aedf27c0608e0342a3051aaed5cff6015 /tools/gccas | |
parent | 50e3a20b54be93fce84f70075730b8d38c0318d7 (diff) | |
download | external_llvm-d4c7f2766bcf2cf87e562ea4e71cb4b54d81b74e.zip external_llvm-d4c7f2766bcf2cf87e562ea4e71cb4b54d81b74e.tar.gz external_llvm-d4c7f2766bcf2cf87e562ea4e71cb4b54d81b74e.tar.bz2 |
Print the tool name when an error comes from so that I can tell which
tool of a pipeline is having issues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas')
-rw-r--r-- | tools/gccas/gccas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index 974e9e2..13a4a41 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -102,12 +102,12 @@ int main(int argc, char **argv) { // Parse the file now... M.reset(ParseAssemblyFile(InputFilename)); } catch (const ParseException &E) { - cerr << E.getMessage() << "\n"; + cerr << argv[0] << ": " << E.getMessage() << "\n"; return 1; } if (M.get() == 0) { - cerr << "assembly didn't read correctly.\n"; + cerr << argv[0] << ": assembly didn't read correctly.\n"; return 1; } @@ -124,7 +124,7 @@ int main(int argc, char **argv) { std::ofstream Out(OutputFilename.c_str(), std::ios::out); if (!Out.good()) { - cerr << "Error opening " << OutputFilename << "!\n"; + cerr << argv[0] << ": error opening " << OutputFilename << "!\n"; return 1; } |