[LLVMdev] New functionality useful for debugging

Chris Lattner sabre at nondot.org
Wed Oct 22 11:10:07 PDT 2003


This is just a quick note that the Function class now has two new methods
for directly viewing the CFG of a function being worked on.  This is
useful in a debugger, where allows you to just say:

 call F->viewCFG()

and a window will pop up with the function in it, with each basic block
broken into a node in the graph.  This requires having 'dot' and 'gv' in
your path.

The two new methods are described here:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031020/008606.html

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/




More information about the llvm-dev mailing list