summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/GraphWriter.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-04 04:11:12 +0000
committerAlp Toker <alp@nuanti.com>2014-06-04 04:11:12 +0000
commit745927242ac99516e9eb12305dc60d5511f392f4 (patch)
tree1281d5221840b140e9a2b53a97e3f5fedfa2792b /llvm/lib/Support/GraphWriter.cpp
parente3fbe2c774ba7b60e2b7b21baa587101e29408dc (diff)
downloadbcm5719-llvm-745927242ac99516e9eb12305dc60d5511f392f4.tar.gz
bcm5719-llvm-745927242ac99516e9eb12305dc60d5511f392f4.zip
GraphWriter: try gv before xdg-open
Avoid changing behaviour for everyone who's used to the traditional ghostview UI, especially since it knows how to stay in the foreground unlike xdg-open. Amendment to r210147. llvm-svn: 210148
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r--llvm/lib/Support/GraphWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp
index a7bb4f26a58..306f3e89d0d 100644
--- a/llvm/lib/Support/GraphWriter.cpp
+++ b/llvm/lib/Support/GraphWriter.cpp
@@ -170,10 +170,10 @@ bool llvm::DisplayGraph(StringRef FilenameRef, bool wait,
if (!PSViewer && S.TryFindProgram("open", ViewerPath))
PSViewer = PSV_OSXOpen;
#endif
- if (!PSViewer && S.TryFindProgram("xdg-open", ViewerPath))
- PSViewer = PSV_XDGOpen;
if (!PSViewer && S.TryFindProgram("gv", ViewerPath))
PSViewer = PSV_Ghostview;
+ if (!PSViewer && S.TryFindProgram("xdg-open", ViewerPath))
+ PSViewer = PSV_XDGOpen;
// PostScript graph generator + PostScript viewer
std::string GeneratorPath;
OpenPOWER on IntegriCloud