Rename InsnAfterLabelMap and InsnBeforeLabelMap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2010-04-22 18:43:35 +00:00
parent 3547a88b50
commit f1dabde404
2 changed files with 14 additions and 14 deletions

View File

@ -1393,16 +1393,16 @@ DIE *DwarfDebug::constructLexicalScopeDIE(DbgScope *Scope) {
DebugRangeSymbols.size() * Asm->getTargetData().getPointerSize()); DebugRangeSymbols.size() * Asm->getTargetData().getPointerSize());
for (SmallVector<DbgRange, 4>::const_iterator RI = Ranges.begin(), for (SmallVector<DbgRange, 4>::const_iterator RI = Ranges.begin(),
RE = Ranges.end(); RI != RE; ++RI) { RE = Ranges.end(); RI != RE; ++RI) {
DebugRangeSymbols.push_back(InsnBeforeLabelMap.lookup(RI->first)); DebugRangeSymbols.push_back(LabelsBeforeInsn.lookup(RI->first));
DebugRangeSymbols.push_back(InsnAfterLabelMap.lookup(RI->second)); DebugRangeSymbols.push_back(LabelsAfterInsn.lookup(RI->second));
} }
DebugRangeSymbols.push_back(NULL); DebugRangeSymbols.push_back(NULL);
DebugRangeSymbols.push_back(NULL); DebugRangeSymbols.push_back(NULL);
return ScopeDIE; return ScopeDIE;
} }
MCSymbol *Start = InsnBeforeLabelMap.lookup(RI->first); MCSymbol *Start = LabelsBeforeInsn.lookup(RI->first);
MCSymbol *End = InsnAfterLabelMap.lookup(RI->second); MCSymbol *End = LabelsAfterInsn.lookup(RI->second);
if (Start == 0 || End == 0) return 0; if (Start == 0 || End == 0) return 0;
@ -1429,8 +1429,8 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DbgScope *Scope) {
// For now, use first instruction range and emit low_pc/high_pc pair and // For now, use first instruction range and emit low_pc/high_pc pair and
// corresponding .debug_inlined section entry for this pair. // corresponding .debug_inlined section entry for this pair.
SmallVector<DbgRange, 4>::const_iterator RI = Ranges.begin(); SmallVector<DbgRange, 4>::const_iterator RI = Ranges.begin();
MCSymbol *StartLabel = InsnBeforeLabelMap.lookup(RI->first); MCSymbol *StartLabel = LabelsBeforeInsn.lookup(RI->first);
MCSymbol *EndLabel = InsnAfterLabelMap.lookup(RI->second); MCSymbol *EndLabel = LabelsAfterInsn.lookup(RI->second);
if (StartLabel == 0 || EndLabel == 0) { if (StartLabel == 0 || EndLabel == 0) {
assert (0 && "Unexpected Start and End labels for a inlined scope!"); assert (0 && "Unexpected Start and End labels for a inlined scope!");
@ -2156,7 +2156,7 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
// If this instruction begins a scope then note down corresponding label. // If this instruction begins a scope then note down corresponding label.
if (InsnsBeginScopeSet.count(MI) != 0) if (InsnsBeginScopeSet.count(MI) != 0)
InsnBeforeLabelMap[MI] = Label; LabelsBeforeInsn[MI] = Label;
} }
/// endScope - Process end of a scope. /// endScope - Process end of a scope.
@ -2165,7 +2165,7 @@ void DwarfDebug::endScope(const MachineInstr *MI) {
// Emit a label if this instruction ends a scope. // Emit a label if this instruction ends a scope.
MCSymbol *Label = MMI->getContext().CreateTempSymbol(); MCSymbol *Label = MMI->getContext().CreateTempSymbol();
Asm->OutStreamer.EmitLabel(Label); Asm->OutStreamer.EmitLabel(Label);
InsnAfterLabelMap[MI] = Label; LabelsAfterInsn[MI] = Label;
} }
} }
@ -2512,8 +2512,8 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
DeleteContainerSeconds(AbstractScopes); DeleteContainerSeconds(AbstractScopes);
AbstractScopesList.clear(); AbstractScopesList.clear();
AbstractVariables.clear(); AbstractVariables.clear();
InsnBeforeLabelMap.clear(); LabelsBeforeInsn.clear();
InsnAfterLabelMap.clear(); LabelsAfterInsn.clear();
Lines.clear(); Lines.clear();
PrevLabel = NULL; PrevLabel = NULL;
} }

View File

@ -188,13 +188,13 @@ class DwarfDebug {
DenseMap<MDNode*, SmallVector<InlineInfoLabels, 4> > InlineInfo; DenseMap<MDNode*, SmallVector<InlineInfoLabels, 4> > InlineInfo;
SmallVector<MDNode *, 4> InlinedSPNodes; SmallVector<MDNode *, 4> InlinedSPNodes;
/// InsnBeforeLabelMap - Maps instruction with label emitted before /// LabelsBeforeInsn - Maps instruction with label emitted before
/// instruction. /// instruction.
DenseMap<const MachineInstr *, MCSymbol *> InsnBeforeLabelMap; DenseMap<const MachineInstr *, MCSymbol *> LabelsBeforeInsn;
/// InsnAfterLabelMap - Maps instruction with label emitted after /// LabelsAfterInsn - Maps instruction with label emitted after
/// instruction. /// instruction.
DenseMap<const MachineInstr *, MCSymbol *> InsnAfterLabelMap; DenseMap<const MachineInstr *, MCSymbol *> LabelsAfterInsn;
SmallVector<const MCSymbol *, 8> DebugRangeSymbols; SmallVector<const MCSymbol *, 8> DebugRangeSymbols;