[llvm-commits] [llvm-gcc-4.2] r64704 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Mon Feb 16 16:13:57 PST 2009
Author: dpatel
Date: Mon Feb 16 18:13:56 2009
New Revision: 64704
URL: http://llvm.org/viewvc/llvm-project?rev=64704&view=rev
Log:
Use appropriate constructor and destructor names in debug info entry.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=64704&r1=64703&r2=64704&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Mon Feb 16 18:13:56 2009
@@ -221,12 +221,13 @@
BasicBlock *CurBB) {
// Gather location information.
expanded_location Loc = GetNodeLocation(FnDecl, false);
- const char *FnName = GetNodeName(FnDecl);
const char *LinkageName = getLinkageName(FnDecl);
DISubprogram SP =
DebugFactory.CreateSubprogram(findRegion(FnDecl),
- FnName, FnName, LinkageName,
+ lang_hooks.dwarf_name(FnDecl, 0),
+ lang_hooks.dwarf_name(FnDecl, 0),
+ LinkageName,
getOrCreateCompileUnit(Loc.file), CurLineNo,
getOrCreateType(TREE_TYPE(FnDecl)),
Fn->hasInternalLinkage(),
@@ -588,7 +589,7 @@
Member = TREE_CHAIN(Member)) {
// Should we skip.
if (DECL_P(Member) && DECL_IGNORED_P(Member)) continue;
-
+
if (TREE_CODE(Member) == FIELD_DECL) {
if (DECL_FIELD_OFFSET(Member) == 0 ||
@@ -631,11 +632,12 @@
Member = TREE_CHAIN(Member)) {
if (DECL_ABSTRACT_ORIGIN (Member)) continue;
-
+ if (DECL_ARTIFICIAL (Member)) continue;
+
// Get the location of the member.
expanded_location MemLoc = GetNodeLocation(Member, false);
- const char *MemberName = GetNodeName(Member);
+ const char *MemberName = lang_hooks.dwarf_name(Member, 0);
const char *LinkageName = getLinkageName(Member);
DIType SPTy = getOrCreateType(TREE_TYPE(Member));
DISubprogram SP =
More information about the llvm-commits
mailing list