[OPENMP] Change the name of outer non-debug function in debug mode, NFC.
llvm-svn: 309575
This commit is contained in:
parent
1b09a37c07
commit
3e66070a04
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue