mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Cosmetic changes.
Update comment, rename a local variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100116 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d48c1f9b10
commit
8935d90a90
@ -1234,13 +1234,13 @@ DIE *DwarfDebug::createSubprogramDIE(const DISubprogram &SP, bool MakeDecl) {
|
|||||||
return SPDie;
|
return SPDie;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getUpdatedDbgScope - Find or create DbgScope assicated with the instruction.
|
/// getUpdatedDbgScope - Find DbgScope assicated with the instruction.
|
||||||
/// Initialize scope and update scope hierarchy.
|
/// Update scope hierarchy. Create abstract scope if required.
|
||||||
DbgScope *DwarfDebug::getUpdatedDbgScope(MDNode *N, const MachineInstr *MI,
|
DbgScope *DwarfDebug::getUpdatedDbgScope(MDNode *N, const MachineInstr *MI,
|
||||||
MDNode *InlinedAt) {
|
MDNode *InlinedAt) {
|
||||||
assert(N && "Invalid Scope encoding!");
|
assert(N && "Invalid Scope encoding!");
|
||||||
assert(MI && "Missing machine instruction!");
|
assert(MI && "Missing machine instruction!");
|
||||||
bool GetConcreteScope = InlinedAt != 0;
|
bool isAConcreteScope = InlinedAt != 0;
|
||||||
|
|
||||||
DbgScope *NScope = NULL;
|
DbgScope *NScope = NULL;
|
||||||
|
|
||||||
@ -1254,7 +1254,7 @@ DbgScope *DwarfDebug::getUpdatedDbgScope(MDNode *N, const MachineInstr *MI,
|
|||||||
return NScope;
|
return NScope;
|
||||||
|
|
||||||
DbgScope *Parent = NULL;
|
DbgScope *Parent = NULL;
|
||||||
if (GetConcreteScope) {
|
if (isAConcreteScope) {
|
||||||
DILocation IL(InlinedAt);
|
DILocation IL(InlinedAt);
|
||||||
Parent = getUpdatedDbgScope(IL.getScope().getNode(), MI,
|
Parent = getUpdatedDbgScope(IL.getScope().getNode(), MI,
|
||||||
IL.getOrigLocation().getNode());
|
IL.getOrigLocation().getNode());
|
||||||
@ -1276,7 +1276,7 @@ DbgScope *DwarfDebug::getUpdatedDbgScope(MDNode *N, const MachineInstr *MI,
|
|||||||
CurrentFnDbgScope = NScope;
|
CurrentFnDbgScope = NScope;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetConcreteScope) {
|
if (isAConcreteScope) {
|
||||||
ConcreteScopes[InlinedAt] = NScope;
|
ConcreteScopes[InlinedAt] = NScope;
|
||||||
getOrCreateAbstractScope(N);
|
getOrCreateAbstractScope(N);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user