[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)
|
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();
|
||||||
|
|
Loading…
Reference in New Issue