From: Devang Patel Date: Mon, 2 May 2011 22:49:30 +0000 (+0000) Subject: Function with internal linkage name do not have mangled name. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a87a2b2d18b7482f91994e2bba769cddea8bd0ee;p=clang Function with internal linkage name do not have mangled name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130736 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index d6bcab6778..06c4d39c4c 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1644,8 +1644,7 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType, } Name = getFunctionName(FD); // Use mangled name as linkage name for c/c++ functions. - // FIXME : Why do we need check for block helpers ? - if (Name != "__copy_helper_block_" && Name != "__destroy_helper_block_") + if (!Fn->hasInternalLinkage()) LinkageName = CGM.getMangledName(GD); if (LinkageName == Name) LinkageName = llvm::StringRef();