diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 20:52:04 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 20:52:04 +0000 |
commit | 1756886afc900127720de68088f9adff3108ef61 (patch) | |
tree | d4c46dc43cbf2f632d3c575a6d01716370a7b45b /runtime/src/kmp_cancel.cpp | |
parent | 4254a3821b2072ba01f8f7e3347ac862d324babc (diff) |
vendor/llvm-openmp/openmp-trunk-r366426vendor/llvm-openmp/openmp-release_900-r372316vendor/llvm-openmp/openmp-release_90-r371301vendor/llvm-openmp/openmp-release_90-r370514vendor/llvm-openmp/openmp-release_90-r369369vendor/llvm-openmp-90
Notes
Diffstat (limited to 'runtime/src/kmp_cancel.cpp')
-rw-r--r-- | runtime/src/kmp_cancel.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/runtime/src/kmp_cancel.cpp b/runtime/src/kmp_cancel.cpp index 5ed91673b77b2..d1290493daad2 100644 --- a/runtime/src/kmp_cancel.cpp +++ b/runtime/src/kmp_cancel.cpp @@ -1,10 +1,9 @@ //===----------------------------------------------------------------------===// // -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.txt for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -16,8 +15,6 @@ #include "ompt-specific.h" #endif -#if OMP_40_ENABLED - /*! @ingroup CANCELLATION @param loc_ref location of the original task directive @@ -72,7 +69,7 @@ kmp_int32 __kmpc_cancel(ident_t *loc_ref, kmp_int32 gtid, kmp_int32 cncl_kind) { task_data, type | ompt_cancel_activated, OMPT_GET_RETURN_ADDRESS(0)); } -#endif +#endif // OMPT_SUPPORT && OMPT_OPTIONAL return 1 /* true */; } break; @@ -332,5 +329,3 @@ int __kmp_get_cancellation_status(int cancel_kind) { return 0 /* false */; } - -#endif |