diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:16:59 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:16:59 +0000 |
commit | 4dcf6e07461943aab8098915c6d03aa6ec2ca6b1 (patch) | |
tree | e921c005a3e2b2698fad4c6ecdbb1abc3625edc5 /tools/llvmc2 | |
parent | ee4d1d0b33a6144c2ca2a531c4a0264040032c24 (diff) | |
download | external_llvm-4dcf6e07461943aab8098915c6d03aa6ec2ca6b1.zip external_llvm-4dcf6e07461943aab8098915c6d03aa6ec2ca6b1.tar.gz external_llvm-4dcf6e07461943aab8098915c6d03aa6ec2ca6b1.tar.bz2 |
Minor error message fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc2')
-rw-r--r-- | tools/llvmc2/CompilationGraph.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/llvmc2/CompilationGraph.cpp b/tools/llvmc2/CompilationGraph.cpp index 7ce4313..bf34b33 100644 --- a/tools/llvmc2/CompilationGraph.cpp +++ b/tools/llvmc2/CompilationGraph.cpp @@ -102,7 +102,7 @@ CompilationGraph::getToolsVector(const std::string& LangName) const tools_map_type::const_iterator I = ToolsMap.find(LangName); if (I == ToolsMap.end()) throw std::runtime_error("No tool corresponding to the language " - + LangName + "found"); + + LangName + " found"); return I->second; } @@ -391,14 +391,15 @@ namespace llvm { } void CompilationGraph::writeGraph() { - std::ofstream O("CompilationGraph.dot"); + std::ofstream O("compilation-graph.dot"); if (O.good()) { llvm::WriteGraph(this, "compilation-graph"); O.close(); } else { - throw std::runtime_error("Error opening file for writing"); + throw std::runtime_error("Error opening file 'compilation-graph.dot'" + " for writing!"); } } |