[DebugInfo] Remove LexicalScopes::isCurrentFunctionScope and CSE a use of LexicalScop...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 23 Oct 2014 00:06:27 +0000 (00:06 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 23 Oct 2014 00:06:27 +0000 (00:06 +0000)
commitee129ed18ddc77b3bd12567987af302ec0e25c3a
tree7ed7f1cb27420592b2b71feae6a4fa21d001d42f
parent5385df6bba672e254d017027d769e3ed5f4fd003
[DebugInfo] Remove LexicalScopes::isCurrentFunctionScope and CSE a use of LexicalScopes::getCurrentFunctionScope

Now that we're sure the only root (non-abstract) scope is the current
function scope, there's no need for isCurrentFunctionScope, the property
can be tested directly instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220451 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LexicalScopes.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h