[cfe-commits] r130736 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Mon May 2 15:49:30 PDT 2011
Author: dpatel
Date: Mon May 2 17:49:30 2011
New Revision: 130736
URL: http://llvm.org/viewvc/llvm-project?rev=130736&view=rev
Log:
Function with internal linkage name do not have mangled name.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=130736&r1=130735&r2=130736&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon May 2 17:49:30 2011
@@ -1644,8 +1644,7 @@
}
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();
More information about the cfe-commits
mailing list