LLVM: lib/ObjCopy/wasm/WasmObject.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

10

11namespace llvm {

13namespace wasm {

14

15using namespace object;

16using namespace llvm::wasm;

17

19 Section NewSection, std::unique_ptr &&Content) {

20 Sections.push_back(NewSection);

21 OwnedContents.emplace_back(std::move(Content));

22}

23

26

27

28

29

32 Sec.Name = ".objcopy.removed";

34 Sec.Contents = {};

35 Sec.HeaderSecSizeEncodingLen = std::nullopt;

36 }

37 }

38 } else {

40 }

41}

42

43}

44}

45}

ReachingDefInfo 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)

Definition WasmObject.cpp:18

void removeSections(function_ref< bool(const Section &)> ToRemove)

Definition WasmObject.cpp:24