diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-05-02 14:20:50 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-05-02 14:20:50 +0000 |
commit | 18fa2323b681aae4c4e3810f2c4a1f2c2baadbb3 (patch) | |
tree | bdfad71db1deecf791573ae4bfcd70278f80eda2 /clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | |
parent | 0f1da8f3657af45228ccd7461005f393b7ca9fe0 (diff) | |
download | bcm5719-llvm-18fa2323b681aae4c4e3810f2c4a1f2c2baadbb3.tar.gz bcm5719-llvm-18fa2323b681aae4c4e3810f2c4a1f2c2baadbb3.zip |
[OPENMP] Emit names of the globals depending on target.
Some symbols are not allowed to be used as names on some targets. Patch
ries to unify the emission of the names of LLVM globals so they could be
used on different targets.
llvm-svn: 331358
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp index 59858d34304..22e1e48a225 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp @@ -1184,7 +1184,8 @@ void CGOpenMPRuntimeNVPTX::emitTargetOutlinedFunction( } CGOpenMPRuntimeNVPTX::CGOpenMPRuntimeNVPTX(CodeGenModule &CGM) - : CGOpenMPRuntime(CGM), CurrentExecutionMode(ExecutionMode::Unknown) { + : CGOpenMPRuntime(CGM, "_", "$"), + CurrentExecutionMode(ExecutionMode::Unknown) { if (!CGM.getLangOpts().OpenMPIsDevice) llvm_unreachable("OpenMP NVPTX can only handle device code."); } |