2018-06-20 14:12:42 +02:00
|
|
|
/** Ensures there is no "hole" between two consecutive PC ranges, to optimize
|
|
|
|
* generated code size. */
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "SimpleDwarf.hpp"
|
|
|
|
#include "SimpleDwarfFilter.hpp"
|
|
|
|
|
|
|
|
class PcHoleFiller: public SimpleDwarfFilter {
|
|
|
|
public:
|
2018-07-04 18:14:30 +02:00
|
|
|
PcHoleFiller(bool enable=true);
|
2018-06-20 14:12:42 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
SimpleDwarf do_apply(const SimpleDwarf& dw) const;
|
|
|
|
};
|