Use llvm::Function name as the linkage name, but strip off leading '01' from display name.
llvm-svn: 93822
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index b5c19ea..e20c463 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -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.