[LLVMdev] question

Xiaodong Li xli3 at csil-suna33.cs.uiuc.edu
Sat Nov 16 11:13:01 PST 2002

When I tried to compile the program, I got this error:

../../../include/llvm/Analysis/DSGraph.h: In member function `virtual bool
../../../include/llvm/Analysis/DSGraph.h:38: `void
   DSGraph&)' is private
MemLeakage.cpp:87: within this context
gmake: *** [Debug/MemLeakage.o] Error 1

I don't understand what this means. Basically what I did is I defined:
map<Function *, DSGraph> funsetmap;
and I was trying to assign the DSGraph for each function to the map.
funsetmap[&F] = dsg;
Could you tell me what's wrong how to fix this?

Another question is that when I iterate on the graph using this
  for (DSNode::iterator I = N->begin(), E = N->end(); I != E; ++I)
    if (I->getNode())
      visit(I->getNode(), I->getOffset());
The return type of I->getNode() is 'const DSNode *' type. Is there a
'DSNode *' type iterator?

Besides, Can I use the following code to visit the children of N?
   for( unsigned i=0; i < N->getNumLinks(); i++) {
	visit( N->getLink() )


More information about the llvm-dev mailing list