Hi,
The Value class has a print() method which takes a raw_ostream. You can
create one that points to a file and use it.
In fact, dump() itself calls this method.
Victor.
2017-08-08 9:10 GMT-03:00 Anastasiya Ruzhanskaya via llvm-dev <
llvm-dev at lists.llvm.org>:
> Or how to print any instruction, value, range and so on to file?
>
> 2017-08-08 14:03 GMT+02:00 Anastasiya Ruzhanskaya <
> anastasiya.ruzhanskaya at frtk.ru>:
>
>> Hello,
>> is there a possibility to redirect the output of dump() function in
llvm?
>>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20170808/a5321d36/attachment.html>