#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"
namespace llvm {
namespace objcopy {
namespace wasm {
usingnamespaceobject;
SectionPred;
static bool isDebugSection(const Section &Sec) { … }
static bool isLinkerSection(const Section &Sec) { … }
static bool isNameSection(const Section &Sec) { … }
static bool isCommentSection(const Section &Sec) { … }
static Error dumpSectionToFile(StringRef SecName, StringRef Filename,
Object &Obj) { … }
static void removeSections(const CommonConfig &Config, Object &Obj) { … }
static Error handleArgs(const CommonConfig &Config, Object &Obj) { … }
Error executeObjcopyOnBinary(const CommonConfig &Config, const WasmConfig &,
object::WasmObjectFile &In, raw_ostream &Out) { … }
}
}
}