From: Devang Patel Date: Tue, 19 Jan 2010 00:25:12 +0000 (+0000) Subject: Use llvm::Function name as the linkage name, but strip off leading '01' from display... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17584204c2f527d4ed06ddb74afdd7622e70545d;p=clang Use llvm::Function name as the linkage name, but strip off leading '01' from display name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93822 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index b5c19eaa7f..e20c463355 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1020,6 +1020,8 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType, // 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.