[OPENMP] Change the name of outer non-debug function in debug mode, NFC.

llvm-svn: 309575
This commit is contained in:
Alexey Bataev 2017-07-31 16:43:06 +00:00
parent 1b09a37c07
commit 3e66070a04
1 changed files with 4 additions and 2 deletions

View File

@ -448,9 +448,11 @@ CodeGenFunction::GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S) {
if (!NeedWrapperFunction || !HasUIntPtrArgs) if (!NeedWrapperFunction || !HasUIntPtrArgs)
return F; return F;
SmallString<256> Buffer;
llvm::raw_svector_ostream Out(Buffer);
Out << "__nondebug_wrapper_" << CapturedStmtInfo->getHelperName();
FunctionOptions WrapperFO(&S, /*UIntPtrCastRequired=*/true, FunctionOptions WrapperFO(&S, /*UIntPtrCastRequired=*/true,
/*RegisterCastedArgsOnly=*/true, /*RegisterCastedArgsOnly=*/true, Out.str());
".nondebug_wrapper.");
CodeGenFunction WrapperCGF(CGM, /*suppressNewContext=*/true); CodeGenFunction WrapperCGF(CGM, /*suppressNewContext=*/true);
WrapperCGF.disableDebugInfo(); WrapperCGF.disableDebugInfo();
Args.clear(); Args.clear();