]> granicus.if.org Git - clang/commit
[Driver] Use platform-appropriate profiling libraries for WatchOS, TVOS
authorVedant Kumar <vsk@apple.com>
Tue, 10 Nov 2015 00:20:34 +0000 (00:20 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 10 Nov 2015 00:20:34 +0000 (00:20 +0000)
commitfa59aaf5990de3e140f06d2f1f753615e78cb55e
tree4d28507d450ed35881cb9253ce565c7152c021d7
parent6116fc0887d107536c17eeae9572851a8b34e963
[Driver] Use platform-appropriate profiling libraries for WatchOS, TVOS

When adding profiling instrumentation, use libclang_rt.profile_tvos.a
for TVOS targets and libclang_rt.profile_watchos.a for WatchOS targets.

I've also fixed up a comment and added an assert() that prevents us from
defaulting to an incorrect platform.

Differential Revision: http://reviews.llvm.org/D14521

Reviewed-by: t.p.northover
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252558 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/ToolChain.h
lib/Driver/ToolChains.cpp
test/Driver/instrprof-ld.c