summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-13 23:08:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-13 23:08:57 +0000
commit0beb7894c43281a717abb8d4cce1ff8934a8fa99 (patch)
tree0980dd5d5d14a322001f1656526d0eea9aaebd07 /clang/lib/CodeGen
parent91fa781df3b09e0ee1794d3d5c6c71f98e534fdb (diff)
downloadbcm5719-llvm-0beb7894c43281a717abb8d4cce1ff8934a8fa99.tar.gz
bcm5719-llvm-0beb7894c43281a717abb8d4cce1ff8934a8fa99.zip
Make sure not to include the LLVM asm prefix in function names for
debug info. llvm-svn: 71736
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 67054f66b58..9b9fb188193 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -669,6 +669,10 @@ llvm::DIType CGDebugInfo::getOrCreateType(QualType Ty,
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();
OpenPOWER on IntegriCloud