LLVM  16.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.

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
 llvm::objcopy
 
 llvm::objcopy::wasm
 

Typedefs

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

Functions

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...