[Profile] Always build profile runtime library with -fPIC.
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 14 Nov 2014 00:16:26 +0000 (00:16 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 14 Nov 2014 00:16:26 +0000 (00:16 +0000)
commitcbbd2fd8d62a37d19e7ca594a582354d87d9cfd1
tree380d4ea6dc06d061be3bbfea16f3accd6ac310f8
parent77349e7aaf32a9214b42e1669e272e51f0fede28
[Profile] Always build profile runtime library with -fPIC.

This change removes libclang_rt.profile-pic-<arch>.a version of
profile runtime. Instead, it's sufficient to always build
libclang_rt.profile-<arch>.a with -fPIC, as it can be linked into
both executables and shared objects.

llvm-svn: 221952
clang/lib/Driver/Tools.cpp
clang/test/Driver/instrprof-ld.c
compiler-rt/lib/profile/CMakeLists.txt