[LLVMdev] Basic doubt related to Module::iterator

ambika ambika at cse.iitb.ac.in
Mon May 24 12:58:25 PDT 2010


Hi,

I believe that Module::iterator iterates through all the functions in a 
program. Am i wrong somewhere?

I run this for different files, each having one function each ie main(), 
but for one it loops  twice, and for another it loops thrice.
 for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)

Can someone explain this behavior.

regards,
Ambika



More information about the llvm-dev mailing list