[LLVMdev] Re: WRT: function pointers + DSG
dcrowe at tremor.crhc.uiuc.edu
Fri Dec 6 13:21:01 PST 2002
calli->getCalledValue() appears to work better...
On Fri, 6 Dec 2002, David Crowe wrote:
> What do I pass into the DSG in order to access the globals vector of
> functions that a function pointer may be calling. The code:
> CallInst *calli = dynamic_cast<CallInst*>(*i);
> std::vector<GlobalValue*> funcVect =
> Doesn't appear to work... getCalledFunction() returns 0
> On Fri, 6 Dec 2002, Vikram Adve wrote:
> > P.S. I have also updated the CSIL tree. Just check out
> > TarjanSCCIterator.h.
> > --Vikram
> > http://www.cs.uiuc.edu/~vadve
> > > From: David Crowe <dcrowe at tremor.crhc.uiuc.edu>
> > > Subject: [LLVMbugs] Re: [LLVMdev] Tarjan+function_ptrs == trouble ?
> > > Sender: llvmbugs-admin at cs.uiuc.edu
> > > Date: Fri, 6 Dec 2002 00:54:41 -0600 (CST)
> > >
> > > Thanks,
> > >
> > > I've been through the documentation, and if I visit main, i think
> > > everything will turn out correctly... Printing out the Call graph reveals
> > > that main is calling this external node i think you are making reference
> > > to. Could this be the problem?
> > >
> > > Dave
More information about the llvm-dev