[llvm-commits] [llvm] r51740 - /llvm/trunk/tools/llvmc2/CompilationGraph.cpp

Mikhail Glushenkov foldr at codedgers.com
Thu May 29 23:16:59 PDT 2008


Author: foldr
Date: Fri May 30 01:16:59 2008
New Revision: 51740

URL: http://llvm.org/viewvc/llvm-project?rev=51740&view=rev
Log:
Minor error message fixes.

Modified:
    llvm/trunk/tools/llvmc2/CompilationGraph.cpp

Modified: llvm/trunk/tools/llvmc2/CompilationGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/CompilationGraph.cpp?rev=51740&r1=51739&r2=51740&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/CompilationGraph.cpp (original)
+++ llvm/trunk/tools/llvmc2/CompilationGraph.cpp Fri May 30 01:16:59 2008
@@ -102,7 +102,7 @@
   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 @@
 }
 
 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!");
   }
 }
 





More information about the llvm-commits mailing list