Moved extern declarations to private header file, they are only used from within libomptarget, they don't need to be in omptarget.h.



git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@327740 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/libomptarget/include/omptarget.h b/libomptarget/include/omptarget.h
index 4b87567..7135257 100644
--- a/libomptarget/include/omptarget.h
+++ b/libomptarget/include/omptarget.h
@@ -99,10 +99,6 @@
 extern "C" {
 #endif
 
-// Implemented in libomp, they are called from within __tgt_* functions.
-int omp_get_default_device(void) __attribute__((weak));
-int32_t __kmpc_omp_taskwait(void *loc_ref, int32_t gtid) __attribute__((weak));
-
 int omp_get_num_devices(void);
 int omp_get_initial_device(void);
 void *omp_target_alloc(size_t size, int device_num);
diff --git a/libomptarget/src/private.h b/libomptarget/src/private.h
index 8150f74..8aa78d0 100644
--- a/libomptarget/src/private.h
+++ b/libomptarget/src/private.h
@@ -33,6 +33,10 @@
 
 extern int CheckDeviceAndCtors(int64_t device_id);
 
+// Implemented in libomp, they are called from within __tgt_* functions.
+int omp_get_default_device(void) __attribute__((weak));
+int32_t __kmpc_omp_taskwait(void *loc_ref, int32_t gtid) __attribute__((weak));
+
 #ifdef OMPTARGET_DEBUG
 extern int DebugLevel;