summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntime.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-05-09 18:02:37 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-05-09 18:02:37 +0000
commitc15ea70b1f7c4edb1964338507215ed014b90596 (patch)
tree9a644951ba29140fd790afff030ff86274d84747 /clang/lib/CodeGen/CGOpenMPRuntime.cpp
parentd5fa9fde58f1537ae95f18aaa104718b25082194 (diff)
downloadbcm5719-llvm-c15ea70b1f7c4edb1964338507215ed014b90596.tar.gz
bcm5719-llvm-c15ea70b1f7c4edb1964338507215ed014b90596.zip
[OPENMP] Generate unique names for offloading regions id.
It is required to emit unique names for offloading regions ids. Required to support compilation and linking of several compilation units. llvm-svn: 331899
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 35f27b23209..42f1ceac673 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -6286,7 +6286,7 @@ void CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(
OutlinedFn->setLinkage(llvm::GlobalValue::WeakAnyLinkage);
OutlinedFn->setDSOLocal(false);
} else {
- std::string Name = getName({"omp_offload", "region_id"});
+ std::string Name = getName({EntryFnName, "region_id"});
OutlinedFnID = new llvm::GlobalVariable(
CGM.getModule(), CGM.Int8Ty, /*isConstant=*/true,
llvm::GlobalValue::WeakAnyLinkage,
OpenPOWER on IntegriCloud