GraphWriter: tweak the program fallback order
[oota-llvm.git] / lib / Support / GraphWriter.cpp
index b707a2daa95d2af826bcfb4887c38cbc6dfbfe83..c26f6a141ec1a9ee49bb19c8e3be60aa2c14da02 100644 (file)
@@ -176,7 +176,7 @@ bool llvm::DisplayGraph(StringRef FilenameRef, bool wait,
   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;