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

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.