Théophile Bastian
310a348bce
Before, the space between FDEs was abstracted away, thought as dead space that produced an error when queried. This is not the case, though: empty FDEs indicate undefined DWARF
15 lines
326 B
C++
15 lines
326 B
C++
#include "SimpleDwarfFilter.hpp"
|
|
|
|
SimpleDwarfFilter::SimpleDwarfFilter(bool enable): enable(enable)
|
|
{}
|
|
|
|
SimpleDwarf SimpleDwarfFilter::apply(const SimpleDwarf& dw) const {
|
|
if(!enable)
|
|
return dw;
|
|
return do_apply(dw);
|
|
}
|
|
|
|
SimpleDwarf SimpleDwarfFilter::operator()(const SimpleDwarf& dw) {
|
|
return apply(dw);
|
|
}
|