[LLVMdev] getScalarMap
Chris Lattner
sabre at nondot.org
Wed Nov 20 10:35:00 PST 2002
> I tried to used the getScalarMap function of the DSGraph to get the nodes
> that the scalars point to in a function. But the getScalarMap returns a
> null map always. Is there any problem in the getScalarMap function or is
> there any "protocol" to be followed while using the function?
DSGraph::getScalarMap returns a reference to the map, so this cannot be
null. Do you mean that all of the "entries" in the map are null? If so,
remember that DSGraphs are built in the context of some function (as
indicated by hasFunction/getFunction), so only scalars in that context
will be in the map...
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/
More information about the llvm-dev
mailing list