<div dir="ltr"><div><div><div><div>Hi,<br><br></div>you could mimic the code from CFGPrinter.cpp, line 80.<br><br><a href="http://llvm.org/docs/doxygen/html/CFGPrinter_8cpp_source.html">http://llvm.org/docs/doxygen/html/CFGPrinter_8cpp_source.html</a><br>

<br></div>It uses the interface from GraphWriter.h<br><br></div>Regards,<br></div>Victor.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 2, 2014 at 9:26 AM, Kyriakos Georgiou <span dir="ltr"><<a href="mailto:Kyriakos.Georgiou@bristol.ac.uk" target="_blank">Kyriakos.Georgiou@bristol.ac.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><span style="line-height:17.804800033569336px;font-size:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif">I know that from your llvm pass you can call : viewCFG() or viewCFGOnly to view a graphviz representation of a function. These creates and store the .dot files somewhere in the \tmp folder under linux. Is there any way to specify in which file to save the .dot code?</span><br>


<div><span style="line-height:17.804800033569336px;font-size:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif"><br></span></div><div><font color="#000000" face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:14px;line-height:17.804800033569336px">Thank you,</span></font></div>


<div><font color="#000000" face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:14px;line-height:17.804800033569336px">Kyriakos</span></font></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>