mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
Whitespace cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d30d30d58
commit
bdab800b02
@ -801,12 +801,12 @@ void DwarfDebug::beginModule() {
|
|||||||
void DwarfDebug::computeInlinedDIEs() {
|
void DwarfDebug::computeInlinedDIEs() {
|
||||||
// Attach DW_AT_inline attribute with inlined subprogram DIEs.
|
// Attach DW_AT_inline attribute with inlined subprogram DIEs.
|
||||||
for (SmallPtrSet<DIE *, 4>::iterator AI = InlinedSubprogramDIEs.begin(),
|
for (SmallPtrSet<DIE *, 4>::iterator AI = InlinedSubprogramDIEs.begin(),
|
||||||
AE = InlinedSubprogramDIEs.end(); AI != AE; ++AI) {
|
AE = InlinedSubprogramDIEs.end(); AI != AE; ++AI) {
|
||||||
DIE *ISP = *AI;
|
DIE *ISP = *AI;
|
||||||
FirstCU->addUInt(ISP, dwarf::DW_AT_inline, 0, dwarf::DW_INL_inlined);
|
FirstCU->addUInt(ISP, dwarf::DW_AT_inline, 0, dwarf::DW_INL_inlined);
|
||||||
}
|
}
|
||||||
for (DenseMap<const MDNode *, DIE *>::iterator AI = AbstractSPDies.begin(),
|
for (DenseMap<const MDNode *, DIE *>::iterator AI = AbstractSPDies.begin(),
|
||||||
AE = AbstractSPDies.end(); AI != AE; ++AI) {
|
AE = AbstractSPDies.end(); AI != AE; ++AI) {
|
||||||
DIE *ISP = AI->second;
|
DIE *ISP = AI->second;
|
||||||
if (InlinedSubprogramDIEs.count(ISP))
|
if (InlinedSubprogramDIEs.count(ISP))
|
||||||
continue;
|
continue;
|
||||||
@ -824,30 +824,30 @@ void DwarfDebug::collectDeadVariables() {
|
|||||||
DICompileUnit TheCU(CU_Nodes->getOperand(i));
|
DICompileUnit TheCU(CU_Nodes->getOperand(i));
|
||||||
DIArray Subprograms = TheCU.getSubprograms();
|
DIArray Subprograms = TheCU.getSubprograms();
|
||||||
for (unsigned i = 0, e = Subprograms.getNumElements(); i != e; ++i) {
|
for (unsigned i = 0, e = Subprograms.getNumElements(); i != e; ++i) {
|
||||||
DISubprogram SP(Subprograms.getElement(i));
|
DISubprogram SP(Subprograms.getElement(i));
|
||||||
if (ProcessedSPNodes.count(SP) != 0) continue;
|
if (ProcessedSPNodes.count(SP) != 0) continue;
|
||||||
if (!SP.Verify()) continue;
|
if (!SP.Verify()) continue;
|
||||||
if (!SP.isDefinition()) continue;
|
if (!SP.isDefinition()) continue;
|
||||||
DIArray Variables = SP.getVariables();
|
DIArray Variables = SP.getVariables();
|
||||||
if (Variables.getNumElements() == 0) continue;
|
if (Variables.getNumElements() == 0) continue;
|
||||||
|
|
||||||
LexicalScope *Scope =
|
LexicalScope *Scope =
|
||||||
new LexicalScope(NULL, DIDescriptor(SP), NULL, false);
|
new LexicalScope(NULL, DIDescriptor(SP), NULL, false);
|
||||||
DeadFnScopeMap[SP] = Scope;
|
DeadFnScopeMap[SP] = Scope;
|
||||||
|
|
||||||
// Construct subprogram DIE and add variables DIEs.
|
// Construct subprogram DIE and add variables DIEs.
|
||||||
CompileUnit *SPCU = CUMap.lookup(TheCU);
|
CompileUnit *SPCU = CUMap.lookup(TheCU);
|
||||||
assert(SPCU && "Unable to find Compile Unit!");
|
assert(SPCU && "Unable to find Compile Unit!");
|
||||||
constructSubprogramDIE(SPCU, SP);
|
constructSubprogramDIE(SPCU, SP);
|
||||||
DIE *ScopeDIE = SPCU->getDIE(SP);
|
DIE *ScopeDIE = SPCU->getDIE(SP);
|
||||||
for (unsigned vi = 0, ve = Variables.getNumElements(); vi != ve; ++vi) {
|
for (unsigned vi = 0, ve = Variables.getNumElements(); vi != ve; ++vi) {
|
||||||
DIVariable DV(Variables.getElement(vi));
|
DIVariable DV(Variables.getElement(vi));
|
||||||
if (!DV.Verify()) continue;
|
if (!DV.Verify()) continue;
|
||||||
DbgVariable *NewVar = new DbgVariable(DV, NULL);
|
DbgVariable *NewVar = new DbgVariable(DV, NULL);
|
||||||
if (DIE *VariableDIE =
|
if (DIE *VariableDIE =
|
||||||
SPCU->constructVariableDIE(NewVar, Scope->isAbstractScope()))
|
SPCU->constructVariableDIE(NewVar, Scope->isAbstractScope()))
|
||||||
ScopeDIE->addChild(VariableDIE);
|
ScopeDIE->addChild(VariableDIE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -864,7 +864,7 @@ void DwarfDebug::finalizeModuleInfo() {
|
|||||||
// Emit DW_AT_containing_type attribute to connect types with their
|
// Emit DW_AT_containing_type attribute to connect types with their
|
||||||
// vtable holding type.
|
// vtable holding type.
|
||||||
for (DenseMap<const MDNode *, CompileUnit *>::iterator CUI = CUMap.begin(),
|
for (DenseMap<const MDNode *, CompileUnit *>::iterator CUI = CUMap.begin(),
|
||||||
CUE = CUMap.end(); CUI != CUE; ++CUI) {
|
CUE = CUMap.end(); CUI != CUE; ++CUI) {
|
||||||
CompileUnit *TheCU = CUI->second;
|
CompileUnit *TheCU = CUI->second;
|
||||||
TheCU->constructContainingTypeDIEs();
|
TheCU->constructContainingTypeDIEs();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user