summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-02-21 22:25:53 +0000
committerEric Christopher <echristo@apple.com>2012-02-21 22:25:53 +0000
commit85757909126c28f4a65db6e96242f7079eab95f7 (patch)
tree5f21875de0d07d96a722a556884fd41dc3ce885a /llvm/lib/CodeGen
parent8846b4db30e849cd6b7f8829ebe3f83761f43624 (diff)
downloadbcm5719-llvm-85757909126c28f4a65db6e96242f7079eab95f7.tar.gz
bcm5719-llvm-85757909126c28f4a65db6e96242f7079eab95f7.zip
There's no need for a DW_AT_byte_size on a pointer type.
Part of rdar://10493979 where it reduces by about .5% (10k) llvm-svn: 151097
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 162e17e5ef7..d8d1e5a78d3 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -723,7 +723,7 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DIDerivedType DTy) {
addString(&Buffer, dwarf::DW_AT_name, Name);
// Add size if non-zero (derived types might be zero-sized.)
- if (Size)
+ if (Size && Tag != dwarf::DW_TAG_pointer_type)
addUInt(&Buffer, dwarf::DW_AT_byte_size, 0, Size);
// Add source line info if available and TyDesc is not a forward declaration.
OpenPOWER on IntegriCloud