mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 09:18:30 +00:00
Update code for other graph viewing programs too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d39727eae
commit
aaf4c1e2ee
@ -100,8 +100,9 @@ ExecGraphViewer(StringRef ExecPath, std::vector<const char*> &args,
|
||||
return true;
|
||||
}
|
||||
|
||||
void llvm::DisplayGraph(StringRef Filename, bool wait,
|
||||
void llvm::DisplayGraph(StringRef FilenameRef, bool wait,
|
||||
GraphProgram::Name program) {
|
||||
std::string Filename = FilenameRef;
|
||||
wait &= !ViewBackground;
|
||||
std::string ErrMsg;
|
||||
#if HAVE_GRAPHVIZ
|
||||
@ -182,12 +183,11 @@ void llvm::DisplayGraph(StringRef Filename, bool wait,
|
||||
#endif
|
||||
|
||||
std::vector<const char*> args;
|
||||
std::string FilenameStr = Filename;
|
||||
args.push_back(prog.c_str());
|
||||
args.push_back("-Tps");
|
||||
args.push_back("-Nfontname=Courier");
|
||||
args.push_back("-Gsize=7.5,10");
|
||||
args.push_back(FilenameStr.c_str());
|
||||
args.push_back(Filename.c_str());
|
||||
args.push_back("-o");
|
||||
args.push_back(PSFilename.c_str());
|
||||
args.push_back(0);
|
||||
|
Loading…
Reference in New Issue
Block a user