[cfe-dev] how to get source code location information in LLVM3.7.0?
Michael Zolotukhin via cfe-dev
cfe-dev at lists.llvm.org
Tue Oct 27 23:55:15 PDT 2015
Hi,
You could see how passes print their remarks. For instance, see lib/Transforms/Scalar/LoopUnrollPass.cpp, lines 1048-1055. You’ll probably be interested in DebugLoc type, and how function emitOptimizationRemarkMissed is implemented.
Michael
> On Oct 27, 2015, at 7:17 PM, Q Z via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>
> could anyone give me some examples to get a instruction's line and filename information in source codes in LLVM3.7.0?
>
> thank you!
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151027/a784cf4d/attachment.html>
More information about the cfe-dev
mailing list