[DebugInfo] Define base function on DWARFDie reverse iterators
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 30 Oct 2018 18:25:28 +0000 (18:25 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 30 Oct 2018 18:25:28 +0000 (18:25 +0000)
commit7323259de884f4576d78e6492b93fc2455617ef5
treed832192fecbf6ab30b4195b1dc023efbb4a95e40
parent98f1dd0bd593fc147bddff45c706542c4c08cadd
[DebugInfo] Define base function on DWARFDie reverse iterators

This defines member function base on the specialization of
std::reverse_iterator for DWARFDie::iterator as required by C++
[reverse.iter.conv].

This fixes unit test DWARFDebugInfoTest.cpp under EXPENSIVE_CHECKS which
currently can't be built due to GNU C++ Library calling this member
function in debug mode.

This fixes https://llvm.org/PR38785

Patch by: Eugene Sharygin

Differential revision: https://reviews.llvm.org/D53792

llvm-svn: 345621
llvm/include/llvm/DebugInfo/DWARF/DWARFDie.h
llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp