[cfe-commits] r93822 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Mon Jan 18 16:25:12 PST 2010
Author: dpatel
Date: Mon Jan 18 18:25:12 2010
New Revision: 93822
URL: http://llvm.org/viewvc/llvm-project?rev=93822&view=rev
Log:
Use llvm::Function name as the linkage name, but strip off leading '01' from display 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=93822&r1=93821&r2=93822&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Jan 18 18:25:12 2010
@@ -1020,6 +1020,8 @@
// Use llvm function name as linkage name.
Name = Fn->getName();
LinkageName = Name;
+ if (!Name.empty() && Name[0] == '\01')
+ Name = Name.substr(1);
}
// It is expected that CurLoc is set before using EmitFunctionStart.
More information about the cfe-commits
mailing list