18using namespace object;
24 OwnedContents.emplace_back(std::move(
Content));
35 Sec.Name =
".objcopy.removed";
38 Sec.HeaderSecSizeEncodingLen = std::nullopt;
ReachingDefAnalysis InstSet & ToRemove
An efficient, type-erasing, non-owning reference to a callable.
This is an optimization pass for GlobalISel generic memory operations.
void erase_if(Container &C, UnaryPredicate P)
Provide a container algorithm similar to C++ Library Fundamentals v2's erase_if which is equivalent t...
std::vector< Section > Sections
void addSectionWithOwnedContents(Section NewSection, std::unique_ptr< MemoryBuffer > &&Content)
void removeSections(function_ref< bool(const Section &)> ToRemove)