Skip to content

Commit

Permalink
[OPENMP] Change the name of outer non-debug function in debug mode, NFC.
Browse files Browse the repository at this point in the history
llvm-svn: 309575
  • Loading branch information
alexey-bataev committed Jul 31, 2017
1 parent 1b09a37 commit 3e66070
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clang/lib/CodeGen/CGStmtOpenMP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3e66070

Please sign in to comment.