aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/WhitespaceManager.cpp
diff options
context:
space:
mode:
authorJoseph Huber <35342157+jhuber6@users.noreply.github.com>2023-10-04 14:14:13 -0500
committerGitHub <noreply@github.com>2023-10-04 14:14:13 -0500
commit2d4d8c8f97ceec2fb7f9e8376b0a304aad0790e6 (patch)
tree247e6b08b69e96880734b847a4fbd5e9cb9c9639 /clang/lib/Format/WhitespaceManager.cpp
parent49d8a559d35b5b144d61c8d96b0538db7f719de4 (diff)
downloadllvm-2d4d8c8f97ceec2fb7f9e8376b0a304aad0790e6.zip
llvm-2d4d8c8f97ceec2fb7f9e8376b0a304aad0790e6.tar.gz
llvm-2d4d8c8f97ceec2fb7f9e8376b0a304aad0790e6.tar.bz2
[Libomptarget] Make the DeviceRTL configuration globals weak (#68220)
This patch applies weak linkage to the config globals by the name `__omp_rtl...`. This is because when passing `-nogpulib` we will not link in or create these globals. This allows the OpenMP device RTL to be self contained without requiring the additional definitions from the `clang` compiler. In the standard case, this should not affect the current behavior, this is because the strong definition coming from the compiler should always override the weak definition we default to here. In the case that these are not defined by the compiler, these will remain weak. This will impact optimizations somewhat, but the previous behavior was that it would not link so that is an improvement. Depends on: https://github.com/llvm/llvm-project/pull/68215
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
0 files changed, 0 insertions, 0 deletions