diff options
author | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2019-08-01 21:15:58 +0000 |
---|---|---|
committer | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2019-08-01 21:15:58 +0000 |
commit | 625f59d19002146ded8e42f30f9e5f3814b7c8b3 (patch) | |
tree | b947435410a03cd7dd1c9965f9d507f096d7ff56 /clang/lib/Basic/SourceManager.cpp | |
parent | 8560ea5534b71c4f4aa02fe6e484e9339d0e4fc0 (diff) | |
download | bcm5719-llvm-625f59d19002146ded8e42f30f9e5f3814b7c8b3.tar.gz bcm5719-llvm-625f59d19002146ded8e42f30f9e5f3814b7c8b3.zip |
[OpenMP] Fix declare target link implementation
Summary:
This patch fixes the case where variables in different compilation units or the same compilation unit are under the declare target link clause AND have the same name.
This also fixes the name clash error that occurs when unified memory is activated.
The changes in this patch include:
- Pointers to internal variables are given unique names.
- Externally visible variables are given the same name as before.
- All pointer variables (external or internal) are weakly linked.
Reviewers: ABataev, jdoerfert, caomhin
Reviewed By: ABataev
Subscribers: lebedev.ri, guansong, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64592
llvm-svn: 367613
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions