[LLVMdev] Basic doubt related to Module::iterator
Trevor Harmon
Trevor.W.Harmon at nasa.gov
Tue May 25 12:31:28 PDT 2010
On May 24, 2010, at 12:58 PM, ambika wrote:
> 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)
It might be iterating over the LLVM intrinsic functions as well as the
user-defined functions. Try printing out the function names on each
iteration and see what you get.
Trevor
More information about the llvm-dev
mailing list