LLVM  15.0.0git
Namespaces | Typedefs | Functions
WasmObjcopy.cpp File Reference
#include "llvm/ObjCopy/wasm/WasmObjcopy.h"
#include "WasmObject.h"
#include "WasmReader.h"
#include "WasmWriter.h"
#include "llvm/ObjCopy/CommonConfig.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/FileOutputBuffer.h"
Include dependency graph for WasmObjcopy.cpp:

Go to the source code of this file.


 This is an optimization pass for GlobalISel generic memory operations.


using llvm::objcopy::wasm::SectionPred = std::function< bool(const Section &Sec)>


static bool llvm::objcopy::wasm::isDebugSection (const Section &Sec)
static bool llvm::objcopy::wasm::isLinkerSection (const Section &Sec)
static bool llvm::objcopy::wasm::isNameSection (const Section &Sec)
static bool llvm::objcopy::wasm::isCommentSection (const Section &Sec)
static Error llvm::objcopy::wasm::dumpSectionToFile (StringRef SecName, StringRef Filename, Object &Obj)
static void llvm::objcopy::wasm::removeSections (const CommonConfig &Config, Object &Obj)
static Error llvm::objcopy::wasm::handleArgs (const CommonConfig &Config, Object &Obj)
Error llvm::objcopy::wasm::executeObjcopyOnBinary (const CommonConfig &Config, const WasmConfig &, object::WasmObjectFile &In, raw_ostream &Out)
 Apply the transformations described by Config and WasmConfig to In and writes the result into Out. More...