summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit85121a3bda51bc151da7b1a28e83894193b733f4 (patch)
treecf8d97437823558bd17828c257fa56701bec0cd6 /llvm/lib
parentfbffe635282804ad2e30248368ddc2ec9dc65b6a (diff)
downloadbcm5719-llvm-85121a3bda51bc151da7b1a28e83894193b733f4.tar.gz
bcm5719-llvm-85121a3bda51bc151da7b1a28e83894193b733f4.zip
There is no need to emit source location info for DW_TAG_pointer_type.
llvm-svn: 89487
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index c62c43545c4..4879910fee7 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud