diff options
| author | Dean Michael Berris <dberris@google.com> | 2018-06-08 04:00:07 +0000 |
|---|---|---|
| committer | Dean Michael Berris <dberris@google.com> | 2018-06-08 04:00:07 +0000 |
| commit | af4d583ea826648b36d854b53fb9201293a7c879 (patch) | |
| tree | b923202b8a0641deefc2e71d04fb8d734bfefe8a /clang/lib/Sema/SemaChecking.cpp | |
| parent | 3428beeb2f7753d98572eb04ccda4fb59b0b0af4 (diff) | |
| download | bcm5719-llvm-af4d583ea826648b36d854b53fb9201293a7c879.tar.gz bcm5719-llvm-af4d583ea826648b36d854b53fb9201293a7c879.zip | |
[XRay][compiler-rt] Remove reliance on C++ ABI features
Summary:
This fixes http://llvm.org/PR32274.
This change adds a test to ensure that we're able to link XRay modes and
the runtime to binaries that don't need to depend on the C++ standard
library or a C++ ABI library. In particular, we ensure that this will work
with C programs compiled+linked with XRay.
To make the test pass, we need to change a few things in the XRay
runtime implementations to remove the reliance on C++ ABI features. In
particular, we change the thread-safe function-local-static
initialisation to use pthread_* instead of the C++ features that ensure
non-trivial thread-local/function-local-static initialisation.
Depends on D47696.
Reviewers: dblaikie, jfb, kpw, eizan
Reviewed By: kpw
Subscribers: echristo, eizan, kpw, mgorny, llvm-commits
Differential Revision: https://reviews.llvm.org/D46998
llvm-svn: 334262
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
0 files changed, 0 insertions, 0 deletions

