llvm-project/clang/test
Diego Novillo 795f53ba64 Support using sample profiles with partial debug info (driver)
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
2014-10-22 13:00:05 +00:00
..
ARCMT Objective-C SDK modernization. import Foundation even 2014-10-09 22:04:27 +00:00
ASTMerge
Analysis [analyzer] Move the NewDeleteLeaks checker from CplusplusAlpha to Cplusplus package. 2014-10-21 12:41:36 +00:00
CXX PR21327 / C++ DR1652 / C++ DR73: comparing a past-the-end pointer for one 2014-10-21 23:01:04 +00:00
CodeCompletion
CodeGen Remove including <complex.h> in test case, and change to use _Complex instead. 2014-10-21 02:19:58 +00:00
CodeGenCUDA Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
CodeGenCXX PR21312: Fix a regression in non-type template parameters of function type that are static member functions. 2014-10-20 18:56:54 +00:00
CodeGenObjC CodeGen: correct block mangling in ObjC 2014-10-14 17:20:18 +00:00
CodeGenObjCXX DebugInfo: Don't leak location information from one function into the prologue of the next function. 2014-10-14 16:43:46 +00:00
CodeGenOpenCL R600: Update for div_fmas intrinsic change 2014-10-21 22:21:41 +00:00
Coverage Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
CoverageMapping InstrProf: Avoid repeated linear searches in a hot path 2014-10-01 03:33:52 +00:00
Driver Treat -g1 as -gline-tables-only 2014-10-21 19:20:21 +00:00
FixIt Revert r218925 - "Patch to warn if 'override' is missing" 2014-10-03 09:02:53 +00:00
Format Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
Frontend Support using sample profiles with partial debug info (driver) 2014-10-22 13:00:05 +00:00
Headers Update for llvm api change. 2014-10-15 15:44:25 +00:00
Index clang-format: Fix tests after recent change to ObjC block formatting. 2014-10-22 09:50:23 +00:00
Integration Split out header integration tests 2014-05-04 13:00:32 +00:00
Layout Test case B: fixed check rule 2014-10-21 08:16:42 +00:00
Lexer Switch C compilations to C11 by default. 2014-10-20 23:26:58 +00:00
Misc Adding attributes to the IndirectFieldDecl that we generate for anonymous struct/union fields. This fixes PR20930. 2014-10-15 16:58:18 +00:00
Modules [modules] Initial support for explicitly loading .pcm files. 2014-10-22 02:05:46 +00:00
OpenMP [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
PCH Allow constant expressions in pragma loop hints. 2014-10-12 20:46:07 +00:00
Parser Switch C compilations to C11 by default. 2014-10-20 23:26:58 +00:00
Preprocessor Follow-up commit to r211657 which introduced these macros, but not for MSVC. This turns out to break our freestanding tests on Windows when compiling in MSVC-compatible mode. It was decided (http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20141020/116942.html is the start of the thread) to support this as part of Clang's interface on all platforms. 2014-10-21 19:24:06 +00:00
Profile InstrProf: Update for LLVM API change 2014-08-01 22:50:16 +00:00
Rewriter Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
Sema Switch C compilations to C11 by default. 2014-10-20 23:26:58 +00:00
SemaCUDA CUDA: mark the target of implicit intrinsics properly 2014-09-30 17:38:34 +00:00
SemaCXX Disable the uninitialized field warning in uninstantiated classes. 2014-10-22 02:52:00 +00:00
SemaObjC Objective-C [Sema]. Fixes a bug in comparing qualified 2014-10-13 21:07:45 +00:00
SemaObjCXX Allow @synchronized to contextually convert a C++ object to an ObjC object pointer. 2014-08-12 16:20:36 +00:00
SemaOpenCL OpenCL: Emit global variables in the constant addr space as constant globals 2014-10-16 15:29:19 +00:00
SemaTemplate Fix the rest of PR21289: a pack expansion that we can't expand yet makes a 2014-10-17 20:56:14 +00:00
TableGen
Tooling clang/test: Introduce the feature "staticanalyzer" for --enable-clang-static-analyzer. 2014-07-16 12:05:45 +00:00
Unit Let test/Unit/lit.cfg add config.shlibdir to $PATH on DLL platforms like cygming. 2014-07-04 05:11:55 +00:00
VFS Revert "Revert "DI: LLVM schema change: fold constants into string"" 2014-10-03 20:01:52 +00:00
.clang-format
CMakeLists.txt Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
Makefile Fix makefile for debuginfo-tests execution. 2014-10-17 23:50:47 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:36:12 +00:00
lit.site.cfg.in Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
make_test_dirs.pl