[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)
commit263a00852539077613e294e9e8dbeec4b7d3433e
tree82ee22453710a57f7fb8dab65853983433b29fb8
parentd935be3568213b56e4d243e90bcdba28bb2d7124
[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.

llvm-svn: 220451
llvm/include/llvm/CodeGen/LexicalScopes.h
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h