aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-11-20 21:05:37 +0000
committerDevang Patel <dpatel@apple.com>2009-11-20 21:05:37 +0000
commit8268f72bb23ff56e4e72260fa1e6575941f46c15 (patch)
tree81c58f761b0bab735aaf48314495e94a20e62375 /lib
parent0379c26c10c7e3090ec806a8333f6d3b5ebf8822 (diff)
downloadexternal_llvm-8268f72bb23ff56e4e72260fa1e6575941f46c15.zip
external_llvm-8268f72bb23ff56e4e72260fa1e6575941f46c15.tar.gz
external_llvm-8268f72bb23ff56e4e72260fa1e6575941f46c15.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index c62c435..4879910 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);
}