forked from OSchip/llvm-project
795f53ba64
Summary: When using a profile, we used to require the use -gmlt so that we could get access to the line locations. This is used to match line numbers in the input profile to the line numbers in the function's IR. But this is actually not necessary. The driver can provide source location tracking without the emission of debug information. In these cases, the annotation 'llvm.dbg.cu' is missing from the IR, but the actual line location annotations are still present. This patch tells the driver to only emit source location tracking when -fprofile-sample-use is present in the command line. Reviewers: echristo, dblaikie Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5888 llvm-svn: 220383 |
||
---|---|---|
.. | ||
SystemHeaderPrefix | ||
TestFramework.framework/Headers | ||
profile-sample-use-loc-tracking.prof | ||
rewrite-includes-bom.h | ||
rewrite-includes-messages.h | ||
rewrite-includes1.h | ||
rewrite-includes2.h | ||
rewrite-includes3.h | ||
rewrite-includes4.h | ||
rewrite-includes5.h | ||
rewrite-includes6.h | ||
rewrite-includes7.h | ||
rewrite-includes8.h | ||
test.h | ||
test2.h | ||
test3.h |