[llvm] r210003 - GraphWriter: tweak the program fallback order

Alp Toker alp at nuanti.com
Sun Jun 1 21:14:23 PDT 2014


Author: alp
Date: Sun Jun  1 23:14:23 2014
New Revision: 210003

URL: http://llvm.org/viewvc/llvm-project?rev=210003&view=rev
Log:
GraphWriter: tweak the program fallback order

Amend r210001 to use the classic fallback order behaviour if the requested
graphing program isn't found.

Modified:
    llvm/trunk/lib/Support/GraphWriter.cpp

Modified: llvm/trunk/lib/Support/GraphWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/GraphWriter.cpp?rev=210003&r1=210002&r2=210003&view=diff
==============================================================================
--- llvm/trunk/lib/Support/GraphWriter.cpp (original)
+++ llvm/trunk/lib/Support/GraphWriter.cpp Sun Jun  1 23:14:23 2014
@@ -176,7 +176,7 @@ bool llvm::DisplayGraph(StringRef Filena
   std::string GeneratorPath;
   if (PSViewer &&
       (S.TryFindProgram(getProgramName(program), GeneratorPath) ||
-       S.TryFindProgram("circo|twopi|neato|fdp|dot", GeneratorPath))) {
+       S.TryFindProgram("dot|fdp|neato|twopi|circo", GeneratorPath))) {
     std::string PSFilename = Filename + ".ps";
 
     std::vector<const char *> args;





More information about the llvm-commits mailing list