[llvm-branch-commits] [cfe-branch] r71745 - in /cfe/branches/Apple/Dib: lib/CodeGen/CGDebugInfo.cpp test/CodeGenObjC/debug-info.m
Mike Stump
mrs at apple.com
Wed May 13 16:54:30 PDT 2009
Author: mrs
Date: Wed May 13 18:54:30 2009
New Revision: 71745
URL: http://llvm.org/viewvc/llvm-project?rev=71745&view=rev
Log:
Merge in 71736:
Make sure not to include the LLVM asm prefix in function names for
debug info.
Added:
cfe/branches/Apple/Dib/test/CodeGenObjC/debug-info.m
- copied unchanged from r71736, cfe/trunk/test/CodeGenObjC/debug-info.m
Modified:
cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp?rev=71745&r1=71744&r2=71745&view=diff
==============================================================================
--- cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp Wed May 13 18:54:30 2009
@@ -669,6 +669,10 @@
void CGDebugInfo::EmitFunctionStart(const char *Name, QualType ReturnType,
llvm::Function *Fn,
CGBuilderTy &Builder) {
+ // Skip the asm prefix if it exists.
+ if (Name[0] == '\01')
+ ++Name;
+
// FIXME: Why is this using CurLoc???
llvm::DICompileUnit Unit = getOrCreateCompileUnit(CurLoc);
SourceManager &SM = M->getContext().getSourceManager();
More information about the llvm-branch-commits
mailing list