<div dir="ltr"><div class="gmail_quote">[ Apologies for the duplicate. I messed up the CC list on the initial submission ]</div><div class="gmail_quote"><br>Hi echristo, dblaikie,<br>
<br>
When using a profile, we used to require the use -gmlt so that we could<br>
get access to the line locations. This is used to match line numbers in<br>
the input profile to the line numbers in the function's IR.<br>
<br>
But this is actually not necessary. The driver can provide source<br>
location tracking without the emission of debug information. In these<br>
cases, the annotation '<a href="http://llvm.dbg.cu" target="_blank" class="cremed">llvm.dbg.cu</a>' is missing from the IR, but the<br>
actual line location annotations are still present.<br>
<br>
This patch tells the driver to only emit source location tracking<br>
when -fprofile-sample-use is present in the command line.<br>
<br>
<a href="http://reviews.llvm.org/D5888" target="_blank" class="cremed">http://reviews.llvm.org/D5888</a><br>
<br>
Files:<br>
  lib/Frontend/CompilerInvocation.cpp<br>
  test/Frontend/Inputs/profile-sample-use-loc-tracking.prof<br>
  test/Frontend/profile-sample-use-loc-tracking.c<br>
</div><br></div>