DebugInfo: Pubtypes: Coelesce pubtype registration with accelerator type registration.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index 90f370ccf7161be63cfdf2899d4cf57d0f138387..e1ffa05412fdb1cc912815a2eeded0babdb6cb36 100644 (file)
@@ -685,9 +685,6 @@ DIE *DwarfDebug::constructScopeDIE(CompileUnit *TheCU, LexicalScope *Scope) {
   if (DS.isSubprogram() && ObjectPointer != NULL)
     TheCU->addDIEEntry(ScopeDIE, dwarf::DW_AT_object_pointer, ObjectPointer);
 
-  if (DS.isSubprogram())
-    TheCU->addPubTypes(DISubprogram(DS));
-
   return ScopeDIE;
 }