search for: funcname_index

Displaying 1 result from an estimated 1 matches for "funcname_index".

Did you mean: funcname_index++
2013 Feb 23
1
[LLVMdev] One question about two passes interaction
...s a function. I do not if I does something wrong. The codes I use is as follows: virtual bool runOnModule(Module &M) { for (Module::iterator b = M.begin(), be = M.end(); b != be; ++b) { Function *ff = dyn_cast<Function>(b); errs() <<"testff0: "<<funcname_index<<'\n'; funcname[funcname_index++] = ff->getName(); } return false; } My test source file: void A(){} void B(){printf("dada");} void main(){A(); B();} The ModulePass output is: A B printf main Thanks. Robert -----------------------...