21using namespace object;
 
   37  return Sec.
Name == 
"producers";
 
 
   43    if (Sec.
Name == SecName) {
 
   49      std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufferOrErr);
 
   51      if (
Error E = Buf->commit())
 
   57                         "section '%s' not found", SecName.
str().c_str());
 
 
   65    RemovePred = [&Config](
const Section &Sec) {
 
   71    RemovePred = [RemovePred](
const Section &Sec) {
 
   77    RemovePred = [RemovePred](
const Section &Sec) {
 
   84    RemovePred = [&Config](
const Section &Sec) {
 
   92    RemovePred = [&Config](
const Section &Sec) {
 
  100    RemovePred = [&Config, RemovePred](
const Section &Sec) {
 
  105      return RemovePred(Sec);
 
 
  117    std::tie(SecName, FileName) = Flag.split(
"=");
 
  134        InputData, NewSection.
SectionData->getBufferIdentifier());
 
  136        reinterpret_cast<const uint8_t *
>(BufferCopy->getBufferStart()),
 
  137        BufferCopy->getBufferSize());
 
 
  152  assert(Obj && 
"Unable to deserialize Wasm object");
 
  155  Writer TheWriter(*Obj, Out);
 
 
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
 
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
 
static cl::opt< std::string > InputFilename(cl::Positional, cl::desc("<input file>"), cl::init("-"))
 
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
 
size_t size() const
size - Get the array size.
 
Lightweight error class with error context and mandatory checking.
 
static ErrorSuccess success()
Create a success value.
 
Tagged union holding either a T or a Error.
 
Error takeError()
Take ownership of the stored error.
 
reference get()
Returns a reference to the stored T value.
 
static LLVM_ABI Expected< std::unique_ptr< FileOutputBuffer > > create(StringRef FilePath, size_t Size, unsigned Flags=0)
Factory method to create an OutputBuffer object which manages a read/write buffer of the specified si...
 
static std::unique_ptr< MemoryBuffer > getMemBufferCopy(StringRef InputData, const Twine &BufferName="")
Open the specified memory range as a MemoryBuffer, copying the contents and taking ownership of it.
 
StringRef - Represent a constant reference to a string, i.e.
 
std::string str() const
str - Get the contents as an std::string.
 
bool starts_with(StringRef Prefix) const
Check if this string starts with the given Prefix.
 
bool matches(StringRef S) const
 
Expected< std::unique_ptr< Object > > create() const
 
This class implements an extremely fast bulk output stream that can only output to a stream.
 
static bool isCommentSection(const Section &Sec)
 
static void removeSections(const CommonConfig &Config, Object &Obj)
 
static Error handleArgs(const CommonConfig &Config, Object &Obj)
 
static bool isDebugSection(const Section &Sec)
 
static Error dumpSectionToFile(StringRef SecName, StringRef Filename, StringRef InputFilename, Object &Obj)
 
static bool isNameSection(const Section &Sec)
 
static bool isLinkerSection(const Section &Sec)
 
LLVM_ABI Error 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.
 
std::function< bool(const Section &Sec)> SectionPred
 
This is an optimization pass for GlobalISel generic memory operations.
 
Error createFileError(const Twine &F, Error E)
Concatenate a source file path and/or name with an Error.
 
OutputIt copy(R &&Range, OutputIt Out)
 
SmallVector< StringRef, 0 > DumpSection
 
SmallVector< NewSectionInfo, 0 > AddSection
 
std::shared_ptr< MemoryBuffer > SectionData
 
std::vector< Section > Sections
 
void addSectionWithOwnedContents(Section NewSection, std::unique_ptr< MemoryBuffer > &&Content)
 
void removeSections(function_ref< bool(const Section &)> ToRemove)
 
ArrayRef< uint8_t > Contents