summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-05-31 22:56:51 +0000
committerDevang Patel <dpatel@apple.com>2011-05-31 22:56:51 +0000
commite9853f25ad8a9e5bcde1cebb776b9b148ebd7919 (patch)
treed5d35e2c7a85b453cf8236e74597b102d5fc9495 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent72140d553a9c451b8ab1944b6628c83fafd3b149 (diff)
downloadbcm5719-llvm-e9853f25ad8a9e5bcde1cebb776b9b148ebd7919.tar.gz
bcm5719-llvm-e9853f25ad8a9e5bcde1cebb776b9b148ebd7919.zip
Include global types, that are referenced through local variables, in debug_pubtypes list.
llvm-svn: 132371
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index f29b1996cca..3c42f2de44a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -985,12 +985,7 @@ void DwarfDebug::constructGlobalVariableDIE(const MDNode *N) {
getRealLinkageName(LinkageName));
// Add type.
TheCU->addType(VariableDIE, GTy);
- if (GTy.isCompositeType() && !GTy.getName().empty()
- && !GTy.isForwardDecl()) {
- DIEEntry *Entry = TheCU->getDIEEntry(GTy);
- assert(Entry && "Missing global type!");
- TheCU->addGlobalType(GTy.getName(), Entry->getEntry());
- }
+
// Add scoping info.
if (!GV.isLocalToUnit()) {
TheCU->addUInt(VariableDIE, dwarf::DW_AT_external, dwarf::DW_FORM_flag, 1);
OpenPOWER on IntegriCloud