1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

GraphWriter: tweak the program fallback order

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

llvm-svn: 210003
This commit is contained in:
Alp Toker 2014-06-02 04:14:23 +00:00
parent 83f29343d8
commit eb71f96959

View 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;