[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
Chris Lattner
sabre at nondot.org
Wed Jul 13 21:08:48 PDT 2005
On Wed, 13 Jul 2005, Reid Spencer wrote:
>> +#ifdef HAVE_GRAPHVIZ
>> + std::cerr << "Running 'Graphviz' program... " << std::flush;
>> + if (system(("Graphviz " + Filename).c_str())) {
>
> This depends on Graphviz being in the path at runtime. That might not be
> the case. Since autoconf already figured out the full path for Graphviz,
> we should use that path. I will make that path available in the variable
> LLVM_PATH_GRAPHVIZ for you so this should be:
>
> if (system((LLVM_PATH_GRAPHVIZ + Filename).c_str())) {
Sounds good, will fix.
-Chris
>> + } else {
>> + return;
>> + }
>> +#endif
>> +
>> std::cerr << "Running 'dot' program... " << std::flush;
>> if (system(("dot -Tps -Nfontname=Courier -Gsize=7.5,10 " + Filename
>> + " > /tmp/dag.tempgraph.ps").c_str())) {
>> - std::cerr << "Error running dot: 'dot' not in path?\n";
>> + std::cerr << "Error viewing graph: 'dot' not in path?\n";
>> } else {
>> std::cerr << "\n";
>> system("gv /tmp/dag.tempgraph.ps");
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://mail.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-commits
mailing list