projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comment.
[oota-llvm.git]
/
lib
/
Support
/
GraphWriter.cpp
diff --git
a/lib/Support/GraphWriter.cpp
b/lib/Support/GraphWriter.cpp
index ecf2bfdb9141054db6ef96c9fc70598332a5a91e..b41e597a0ff4859517255235d47f30d69e41be10 100644
(file)
--- a/
lib/Support/GraphWriter.cpp
+++ b/
lib/Support/GraphWriter.cpp
@@
-2,8
+2,8
@@
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
-// This file
was developed by the LLVM research group and is distributed under
-//
the University of Illinois Open Source
License. See LICENSE.TXT for details.
+// This file
is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
@@
-29,7
+29,7
@@
void llvm::DisplayGraph(const sys::Path &Filename) {
args.push_back(0);
cerr << "Running 'Graphviz' program... " << std::flush;
args.push_back(0);
cerr << "Running 'Graphviz' program... " << std::flush;
- if (sys::Program::ExecuteAndWait(Graphviz, &args[0],0,0,0,&ErrMsg)) {
+ if (sys::Program::ExecuteAndWait(Graphviz, &args[0],0,0,0,
0,
&ErrMsg)) {
cerr << "Error viewing graph: " << ErrMsg << "\n";
}
#elif (HAVE_GV && HAVE_DOT)
cerr << "Error viewing graph: " << ErrMsg << "\n";
}
#elif (HAVE_GV && HAVE_DOT)
@@
-49,7
+49,7
@@
void llvm::DisplayGraph(const sys::Path &Filename) {
args.push_back(0);
cerr << "Running 'dot' program... " << std::flush;
args.push_back(0);
cerr << "Running 'dot' program... " << std::flush;
- if (sys::Program::ExecuteAndWait(dot, &args[0],0,0,0,&ErrMsg)) {
+ if (sys::Program::ExecuteAndWait(dot, &args[0],0,0,0,
0,
&ErrMsg)) {
cerr << "Error viewing graph: '" << ErrMsg << "\n";
} else {
cerr << " done. \n";
cerr << "Error viewing graph: '" << ErrMsg << "\n";
} else {
cerr << " done. \n";
@@
-61,7
+61,7
@@
void llvm::DisplayGraph(const sys::Path &Filename) {
args.push_back(0);
ErrMsg.clear();
args.push_back(0);
ErrMsg.clear();
- if (sys::Program::ExecuteAndWait(gv, &args[0],0,0,0,&ErrMsg)) {
+ if (sys::Program::ExecuteAndWait(gv, &args[0],0,0,0,
0,
&ErrMsg)) {
cerr << "Error viewing graph: " << ErrMsg << "\n";
}
}
cerr << "Error viewing graph: " << ErrMsg << "\n";
}
}
@@
-70,11
+70,12
@@
void llvm::DisplayGraph(const sys::Path &Filename) {
sys::Path dotty(LLVM_PATH_DOTTY);
std::vector<const char*> args;
sys::Path dotty(LLVM_PATH_DOTTY);
std::vector<const char*> args;
+ args.push_back(dotty.c_str());
args.push_back(Filename.c_str());
args.push_back(0);
cerr << "Running 'dotty' program... " << std::flush;
args.push_back(Filename.c_str());
args.push_back(0);
cerr << "Running 'dotty' program... " << std::flush;
- if (sys::Program::ExecuteAndWait(dotty, &args[0],0,0,0,&ErrMsg)) {
+ if (sys::Program::ExecuteAndWait(dotty, &args[0],0,0,0,
0,
&ErrMsg)) {
cerr << "Error viewing graph: " << ErrMsg << "\n";
} else {
#ifdef __MINGW32__ // Dotty spawns another app and doesn't wait until it returns
cerr << "Error viewing graph: " << ErrMsg << "\n";
} else {
#ifdef __MINGW32__ // Dotty spawns another app and doesn't wait until it returns