<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><P>Hello,</P>
<P> </P>
<P>I am working on a project that requires me to perform some analysis on a bitcode file outside the existing LLVM analysis frameworks (opt, etc.).  In what I am doing, I need to be able to access the dominator tree for a given function.  Is there a way I can instantiate a DominatorTree object outside the existing analysis frameworks?</P>
<P> </P>
<P>I have tried several things all along the lines of:</P>
<P> </P>
<P>DominatorTree DT;</P>
<P>DT.getBase().recalculate(F);</P>
<P> </P>
<P>Everything I have tried results in an assertion failure when trying to access the front() of what I assume is the DominatorTree:</P>
<P> </P>
<P>Assertion failed: !empty() && "Called front() on empty list!"</P>
<P> </P>
<P>If anyone has an example of how to do this, I would really appreciate it.</P>
<P> </P>
<P>Thanks,</P>
<P> </P>
<P>David<BR></P></div></body></html>