File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ add_llvm_library(omptarget
19
19
device.cpp
20
20
interface .cpp
21
21
omptarget.cpp
22
- OmptCallback.cpp
23
22
rtl.cpp
24
23
LegacyAPI.cpp
25
24
OpenMP/InteropAPI.cpp
25
+ OpenMP/OMPT/Callback.cpp
26
26
27
27
ADDITIONAL_HEADER_DIRS
28
28
${LIBOMPTARGET_INCLUDE_DIR}
Original file line number Diff line number Diff line change 1
- // ===-- OmptCallback .cpp - Target independent OpenMP target RTL --- C++ -* -===//
1
+ // ===-- OpenMP/OMPT/Callback .cpp - OpenMP Tooling Callback implementation -===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- #ifdef OMPT_SUPPORT
13
+ #ifndef OMPT_SUPPORT
14
14
15
- #include " llvm/Support/DynamicLibrary.h"
15
+ extern " C" {
16
+ // / Dummy definition when OMPT is disabled
17
+ void ompt_libomptarget_connect () {}
18
+ }
19
+
20
+ #else // OMPT_SUPPORT is set
16
21
17
22
#include < cstdlib>
18
23
#include < cstring>
24
29
#include " OpenMP/OMPT/Connector.h"
25
30
#include " OpenMP/OMPT/Interface.h"
26
31
32
+ #include " llvm/Support/DynamicLibrary.h"
33
+
27
34
#undef DEBUG_PREFIX
28
35
#define DEBUG_PREFIX " OMPT"
29
36
@@ -491,9 +498,4 @@ void ompt_libomptarget_connect(ompt_start_tool_result_t *result) {
491
498
DP (" Leave ompt_libomptarget_connect\n " );
492
499
}
493
500
}
494
- #else
495
- extern " C" {
496
- // / Dummy definition when OMPT is disabled
497
- void ompt_libomptarget_connect () {}
498
- }
499
501
#endif // OMPT_SUPPORT
You can’t perform that action at this time.
0 commit comments