mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
remove a useless optimization: now that label replacement never
happens, the start/end of a scope can never be the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a34ec2290f
commit
5b9062cb3a
@ -1370,10 +1370,6 @@ DIE *DwarfDebug::constructLexicalScopeDIE(DbgScope *Scope) {
|
|||||||
assert(!MMI->isLabelDeleted(EndID) &&
|
assert(!MMI->isLabelDeleted(EndID) &&
|
||||||
"Invalid end label for an inlined scope!");
|
"Invalid end label for an inlined scope!");
|
||||||
|
|
||||||
// Ignore empty scopes.
|
|
||||||
if (StartID == EndID && StartID != 0)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
DIE *ScopeDIE = new DIE(dwarf::DW_TAG_lexical_block);
|
DIE *ScopeDIE = new DIE(dwarf::DW_TAG_lexical_block);
|
||||||
if (Scope->isAbstractScope())
|
if (Scope->isAbstractScope())
|
||||||
return ScopeDIE;
|
return ScopeDIE;
|
||||||
@ -1398,9 +1394,6 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DbgScope *Scope) {
|
|||||||
"Invalid starting label for an inlined scope!");
|
"Invalid starting label for an inlined scope!");
|
||||||
assert(!MMI->isLabelDeleted(EndID) &&
|
assert(!MMI->isLabelDeleted(EndID) &&
|
||||||
"Invalid end label for an inlined scope!");
|
"Invalid end label for an inlined scope!");
|
||||||
// Ignore empty scopes.
|
|
||||||
if (StartID == EndID)
|
|
||||||
return NULL;
|
|
||||||
if (!Scope->getScopeNode())
|
if (!Scope->getScopeNode())
|
||||||
return NULL;
|
return NULL;
|
||||||
DIScope DS(Scope->getScopeNode());
|
DIScope DS(Scope->getScopeNode());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user