<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">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 <i class="">DebugLoc</i> type, and how function <i class="">emitOptimizationRemarkMissed</i> is implemented.</div><div class=""><br class=""></div><div class="">Michael</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 27, 2015, at 7:17 PM, Q Z via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">could anyone give me some examples to get a instruction's line and filename information in source codes in LLVM3.7.0?<div class=""><br class=""></div><div class="">thank you!</div></div>
_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></blockquote></div><br class=""></div></body></html>