Skip to content

Commit 7a28a3e

Browse files
George Rokosmemfrob
authored andcommitted
[libomptarget][NFC] Fixed obsolete function names in comments
1 parent 9de9d3e commit 7a28a3e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openmp/libomptarget/src/omptarget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static int32_t getParentIndex(int64_t type) {
209209
}
210210

211211
/// Call the user-defined mapper function followed by the appropriate
212-
// target_data_* function (target_data_{begin,end,update}).
212+
// targetData* function (targetData{Begin,End,Update}).
213213
int targetDataMapper(ident_t *loc, DeviceTy &Device, void *arg_base, void *arg,
214214
int64_t arg_size, int64_t arg_type,
215215
map_var_info_t arg_names, void *arg_mapper,
@@ -225,7 +225,7 @@ int targetDataMapper(ident_t *loc, DeviceTy &Device, void *arg_base, void *arg,
225225

226226
// Construct new arrays for args_base, args, arg_sizes and arg_types
227227
// using the information in MapperComponents and call the corresponding
228-
// target_data_* function using these new arrays.
228+
// targetData* function using these new arrays.
229229
std::vector<void *> MapperArgsBase(MapperComponents.Components.size());
230230
std::vector<void *> MapperArgs(MapperComponents.Components.size());
231231
std::vector<int64_t> MapperArgSizes(MapperComponents.Components.size());

openmp/libomptarget/src/private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct MapperComponentsTy {
7373
typedef void (*MapperFuncPtrTy)(void *, void *, void *, int64_t, int64_t,
7474
void *);
7575

76-
// Function pointer type for target_data_* functions (targetDataBegin,
76+
// Function pointer type for targetData* functions (targetDataBegin,
7777
// targetDataEnd and targetDataUpdate).
7878
typedef int (*TargetDataFuncPtrTy)(ident_t *, DeviceTy &, int32_t, void **,
7979
void **, int64_t *, int64_t *,

0 commit comments

Comments
 (0)