diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-07-31 16:43:06 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-07-31 16:43:06 +0000 |
commit | 3e66070a0421cb288db8f1f7cb86b370399bc525 (patch) | |
tree | e8b3ef1aa638bb2ecab272d747b8ac0799983019 /clang/lib/CodeGen/CGStmtOpenMP.cpp | |
parent | 1b09a37c0774b518ba4db4d048fd591b31b867a0 (diff) | |
download | bcm5719-llvm-3e66070a0421cb288db8f1f7cb86b370399bc525.tar.gz bcm5719-llvm-3e66070a0421cb288db8f1f7cb86b370399bc525.zip |
[OPENMP] Change the name of outer non-debug function in debug mode, NFC.
llvm-svn: 309575
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index 29b63a85ecb..57259a9912c 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -448,9 +448,11 @@ CodeGenFunction::GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S) { if (!NeedWrapperFunction || !HasUIntPtrArgs) return F; + SmallString<256> Buffer; + llvm::raw_svector_ostream Out(Buffer); + Out << "__nondebug_wrapper_" << CapturedStmtInfo->getHelperName(); FunctionOptions WrapperFO(&S, /*UIntPtrCastRequired=*/true, - /*RegisterCastedArgsOnly=*/true, - ".nondebug_wrapper."); + /*RegisterCastedArgsOnly=*/true, Out.str()); CodeGenFunction WrapperCGF(CGM, /*suppressNewContext=*/true); WrapperCGF.disableDebugInfo(); Args.clear(); |