Writing to file in LLVM ?

Hi All,

I want to write to a file inside FunctionPass. I have tried to use standard fstream from c++ which does not seem to work for me.

How can I write to file easily in LLVM ?

|