summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
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
commita552246b3ddf6db6a0a7f538bee16a1fc0a63b41 (patch)
treee1000ed4fb13985f98e84944fcd573caebfcea55 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentc3b70f636f9965f0d1938dd645dd7f848804a1f1 (diff)
downloadbcm5719-llvm-a552246b3ddf6db6a0a7f538bee16a1fc0a63b41.tar.gz
bcm5719-llvm-a552246b3ddf6db6a0a7f538bee16a1fc0a63b41.zip
remove a useless optimization: now that label replacement never
happens, the start/end of a scope can never be the same. llvm-svn: 98032
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 1b17a9964fd..47ea2a09dbd 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud