@@ -801,12 +801,12 @@ void DwarfDebug::beginModule() {
801
801
void DwarfDebug::computeInlinedDIEs () {
802
802
// Attach DW_AT_inline attribute with inlined subprogram DIEs.
803
803
for (SmallPtrSet<DIE *, 4 >::iterator AI = InlinedSubprogramDIEs.begin (),
804
- AE = InlinedSubprogramDIEs.end (); AI != AE; ++AI) {
804
+ AE = InlinedSubprogramDIEs.end (); AI != AE; ++AI) {
805
805
DIE *ISP = *AI;
806
806
FirstCU->addUInt (ISP, dwarf::DW_AT_inline, 0 , dwarf::DW_INL_inlined);
807
807
}
808
808
for (DenseMap<const MDNode *, DIE *>::iterator AI = AbstractSPDies.begin (),
809
- AE = AbstractSPDies.end (); AI != AE; ++AI) {
809
+ AE = AbstractSPDies.end (); AI != AE; ++AI) {
810
810
DIE *ISP = AI->second ;
811
811
if (InlinedSubprogramDIEs.count (ISP))
812
812
continue ;
@@ -824,30 +824,30 @@ void DwarfDebug::collectDeadVariables() {
824
824
DICompileUnit TheCU (CU_Nodes->getOperand (i));
825
825
DIArray Subprograms = TheCU.getSubprograms ();
826
826
for (unsigned i = 0 , e = Subprograms.getNumElements (); i != e; ++i) {
827
- DISubprogram SP (Subprograms.getElement (i));
828
- if (ProcessedSPNodes.count (SP) != 0 ) continue ;
829
- if (!SP.Verify ()) continue ;
830
- if (!SP.isDefinition ()) continue ;
831
- DIArray Variables = SP.getVariables ();
832
- if (Variables.getNumElements () == 0 ) continue ;
833
-
834
- LexicalScope *Scope =
835
- new LexicalScope (NULL , DIDescriptor (SP), NULL , false );
836
- DeadFnScopeMap[SP] = Scope;
837
-
838
- // Construct subprogram DIE and add variables DIEs.
839
- CompileUnit *SPCU = CUMap.lookup (TheCU);
840
- assert (SPCU && " Unable to find Compile Unit!" );
841
- constructSubprogramDIE (SPCU, SP);
842
- DIE *ScopeDIE = SPCU->getDIE (SP);
843
- for (unsigned vi = 0 , ve = Variables.getNumElements (); vi != ve; ++vi) {
844
- DIVariable DV (Variables.getElement (vi));
845
- if (!DV.Verify ()) continue ;
846
- DbgVariable *NewVar = new DbgVariable (DV, NULL );
847
- if (DIE *VariableDIE =
848
- SPCU->constructVariableDIE (NewVar, Scope->isAbstractScope ()))
849
- ScopeDIE->addChild (VariableDIE);
850
- }
827
+ DISubprogram SP (Subprograms.getElement (i));
828
+ if (ProcessedSPNodes.count (SP) != 0 ) continue ;
829
+ if (!SP.Verify ()) continue ;
830
+ if (!SP.isDefinition ()) continue ;
831
+ DIArray Variables = SP.getVariables ();
832
+ if (Variables.getNumElements () == 0 ) continue ;
833
+
834
+ LexicalScope *Scope =
835
+ new LexicalScope (NULL , DIDescriptor (SP), NULL , false );
836
+ DeadFnScopeMap[SP] = Scope;
837
+
838
+ // Construct subprogram DIE and add variables DIEs.
839
+ CompileUnit *SPCU = CUMap.lookup (TheCU);
840
+ assert (SPCU && " Unable to find Compile Unit!" );
841
+ constructSubprogramDIE (SPCU, SP);
842
+ DIE *ScopeDIE = SPCU->getDIE (SP);
843
+ for (unsigned vi = 0 , ve = Variables.getNumElements (); vi != ve; ++vi) {
844
+ DIVariable DV (Variables.getElement (vi));
845
+ if (!DV.Verify ()) continue ;
846
+ DbgVariable *NewVar = new DbgVariable (DV, NULL );
847
+ if (DIE *VariableDIE =
848
+ SPCU->constructVariableDIE (NewVar, Scope->isAbstractScope ()))
849
+ ScopeDIE->addChild (VariableDIE);
850
+ }
851
851
}
852
852
}
853
853
}
@@ -864,7 +864,7 @@ void DwarfDebug::finalizeModuleInfo() {
864
864
// Emit DW_AT_containing_type attribute to connect types with their
865
865
// vtable holding type.
866
866
for (DenseMap<const MDNode *, CompileUnit *>::iterator CUI = CUMap.begin (),
867
- CUE = CUMap.end (); CUI != CUE; ++CUI) {
867
+ CUE = CUMap.end (); CUI != CUE; ++CUI) {
868
868
CompileUnit *TheCU = CUI->second ;
869
869
TheCU->constructContainingTypeDIEs ();
870
870
}
0 commit comments