[LLVMdev] LLVM Module::dump() method implementation

Dan Liew dan at su-root.co.uk
Tue Sep 9 02:49:15 PDT 2014


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.



More information about the llvm-dev mailing list