Move function into cpp file under KMP_AFFINITY_SUPPORTED guard.
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 2 Sep 2016 20:54:58 +0000 (20:54 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 2 Sep 2016 20:54:58 +0000 (20:54 +0000)
commite6abe52905ee652c8d165a84e11b982457c5c51a
treec8c9313674bd373ace367f215e8aa4e3dcfa545b
parentffdc16051f013e4e43f77c3616148e4a36ba73a0
Move function into cpp file under KMP_AFFINITY_SUPPORTED guard.

When affinity isn't supported, __kmp_affinity_compact doesn't exist.  The
problem is that in kmp_affinity.h there is a function which uses it without the
proper KMP_AFFINITY_SUPPORTED guard around it.  The compiler was smart enough to
ignore it and the function __kmp_affinity_cmp_Address_child_num which relies on
it, but I think it is cleaner to have it under the proper guard.  Since the
function is only used in the kmp_affinity.cpp file and there aren't any plans to
have it elsewhere.  I have moved it there.

llvm-svn: 280542
openmp/runtime/src/kmp_affinity.cpp
openmp/runtime/src/kmp_affinity.h