]> granicus.if.org Git - clang/commitdiff
[OPENMP] Change the name of outer non-debug function in debug mode, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 31 Jul 2017 16:43:06 +0000 (16:43 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 31 Jul 2017 16:43:06 +0000 (16:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309575 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGStmtOpenMP.cpp

index 29b63a85ecbf50ff9c4d0b446ea74792b449c251..57259a9912cbcdda2c593816648533aa319892e7 100644 (file)
@@ -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();