[OpenMP] Replace global InfoLevel with a reference to an internal one.
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 22 Apr 2021 19:29:28 +0000 (15:29 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Fri, 23 Apr 2021 13:43:46 +0000 (09:43 -0400)
commit59b68490122ae6ef92b1ebe45e8a5f2f7d88a401
tree504b95de3a6a9e5e08cbef99a15513c3a66b9bdb
parentfcb45b544d3da87e0aab895eaac7903197a6c58c
[OpenMP] Replace global InfoLevel with a reference to an internal one.

Summary:
This patch improves the implementation of D100774 by replacing the global
variable introduced with a function that returns a reference to an internal
one. This removes the need to define the variable in every plugin that uses it.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D101102
openmp/libomptarget/include/Debug.h
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
openmp/libomptarget/plugins/cuda/src/rtl.cpp
openmp/libomptarget/plugins/generic-elf-64bit/src/rtl.cpp
openmp/libomptarget/plugins/remote/src/rtl.cpp
openmp/libomptarget/src/interface.cpp