From eb4074fcc0afb253ba8d0064a7bb231a04d748b7 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Mon, 31 Jul 2017 16:43:06 +0000 Subject: [PATCH] [OPENMP] Change the name of outer non-debug function in debug mode, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309575 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGStmtOpenMP.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/CGStmtOpenMP.cpp b/lib/CodeGen/CGStmtOpenMP.cpp index 29b63a85ec..57259a9912 100644 --- a/lib/CodeGen/CGStmtOpenMP.cpp +++ b/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(); -- 2.50.1