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

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 31 09:43:06 PDT 2017


Author: abataev
Date: Mon Jul 31 09:43:06 2017
New Revision: 309575

URL: http://llvm.org/viewvc/llvm-project?rev=309575&view=rev
Log:
[OPENMP] Change the name of outer non-debug function in debug mode, NFC.

Modified:
    cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp

Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp?rev=309575&r1=309574&r2=309575&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Mon Jul 31 09:43:06 2017
@@ -448,9 +448,11 @@ CodeGenFunction::GenerateOpenMPCapturedS
   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();




More information about the cfe-commits mailing list