From: Devang Patel Date: Fri, 20 Nov 2009 21:05:37 +0000 (+0000) Subject: There is no need to emit source location info for DW_TAG_pointer_type. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1f37b5b3afe9eb8f4c05391b13af7b58b021ae36;p=oota-llvm.git There is no need to emit source location info for DW_TAG_pointer_type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89487 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index c62c43545c4..4879910fee7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -929,7 +929,7 @@ void DwarfDebug::ConstructTypeDIE(CompileUnit *DW_Unit, DIE &Buffer, AddUInt(&Buffer, dwarf::DW_AT_byte_size, 0, Size); // Add source line info if available and TyDesc is not a forward declaration. - if (!DTy.isForwardDecl()) + if (!DTy.isForwardDecl() && Tag != dwarf::DW_TAG_pointer_type) AddSourceLine(&Buffer, &DTy); }