[LLVMdev] "Function" file name

nizam at cse.iitm.ac.in nizam at cse.iitm.ac.in
Wed Jan 29 20:47:51 PST 2014


I am newbie to llvm! 

I am writing a simple pass that inherits from ModulePass. I override the runOnModule method. In the method, i am attempting to print all the function in the module and the source-file they appear in. I could print the name of the function using the Module::iterator. I am, however, not able to figure-out the way to identify the source-file for a given "Function". Any help in this regards is appreciated. 

Thanks and with best regards, 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140130/88a28f0a/attachment.html>

More information about the llvm-dev mailing list