Prakash Premkumar
2014-Sep-09 09:14 UTC
[LLVMdev] LLVM Module::dump() method implementation
Hi, Where can I find the implementation of the method dump in llvm/IR/Module.h ? Can you please tell me the file i should look into ? Thanks Prakash -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140909/0dc4a4bc/attachment.html>
On 9 September 2014 10:14, Prakash Premkumar <prakash.prax at gmail.com> wrote:> Hi, > > Where can I find the implementation of the method dump in llvm/IR/Module.h ? > Can you please tell me the file i should look into ?The Doxygen documentation is your friend here. http://llvm.org/doxygen/classllvm_1_1Module.html#aafd615304cd504c1e2565de008fe2ea0 The implementation seems to be in AsmWritter.cpp ( http://llvm.org/doxygen/AsmWriter_8cpp_source.html#l02562 ) ``` // Module::dump() - Allow printing of Modules from the debugger. void Module::dump() const { print(dbgs(), nullptr); } ``` Hope that helps. Dan.