Displaying 1 result from an estimated 1 matches for "testff0".
Did you mean:
test80
2013 Feb 23
1
[LLVMdev] One question about two passes interaction
...h as
'printf' as 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.
Robe...