aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-09 01:52:43 +0000
committerChris Lattner <sabre@nondot.org>2010-03-09 01:52:43 +0000
commit5b9062cb3ad2a60f18e941ac42a2382302c46f24 (patch)
treebf0fca69ed109f7eaa0ea640a6a33de3943c60f5 /lib/CodeGen
parenta34ec2290fa441d312ac33a61e6ec6029259bdef (diff)
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 1b17a9964f..47ea2a09db 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1370,10 +1370,6 @@ DIE *DwarfDebug::constructLexicalScopeDIE(DbgScope *Scope) {
assert(!MMI->isLabelDeleted(EndID) &&
"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);
if (Scope->isAbstractScope())
return ScopeDIE;
@@ -1398,9 +1394,6 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DbgScope *Scope) {
"Invalid starting label for an inlined scope!");
assert(!MMI->isLabelDeleted(EndID) &&
"Invalid end label for an inlined scope!");
- // Ignore empty scopes.
- if (StartID == EndID)
- return NULL;
if (!Scope->getScopeNode())
return NULL;
DIScope DS(Scope->getScopeNode());