LLVM 19.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"

Go to the source code of this file.


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


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.