[LLVMdev] [PATCH] correct argument order of gv when viewgraph is called

Patrick Boettcher patrick.boettcher at desy.de
Tue Jan 20 01:44:36 PST 2009


Hi list,

On my system I have gv 3.5.8 and it does not like to be called with 
--spartan before the <filename>.

The man-page is stating that the file name has to come before all 
arguments and the --spartan is actually -spartan. I don't know for newer 
versions of gv.

The attached patch fixes that for me.

Please apply if appropriate.

thanks,
Patrick.
-------------- next part --------------
Index: lib/Support/GraphWriter.cpp
===================================================================
--- lib/Support/GraphWriter.cpp	(revision 62576)
+++ lib/Support/GraphWriter.cpp	(working copy)
@@ -57,8 +57,8 @@
     sys::Path gv(LLVM_PATH_GV);
     args.clear();
     args.push_back(gv.c_str());
-    args.push_back("--spartan");
     args.push_back(PSFilename.c_str());
+    args.push_back("-spartan");
     args.push_back(0);
     
     ErrMsg.clear();


More information about the llvm-dev mailing list