improve compatibility with various versions of graphviz, patch by
authorChris Lattner <sabre@nondot.org>
Tue, 20 Jan 2009 18:25:03 +0000 (18:25 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Jan 2009 18:25:03 +0000 (18:25 +0000)
Patrick Boettcher!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62592 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/GraphWriter.cpp

index aad1818372a35bc59f0d4e81f438342328acf085..c359dfb82ea7b618454f9ed9500d75926221591a 100644 (file)
@@ -57,8 +57,8 @@ void llvm::DisplayGraph(const sys::Path &Filename) {
     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();