9#ifndef LLVM_LIB_OBJCOPY_COFF_COFFWRITER_H
10#define LLVM_LIB_OBJCOPY_COFF_COFFWRITER_H
26 std::unique_ptr<WritableMemoryBuffer> Buf;
31 size_t SizeOfInitializedData;
34 template <
class SymbolTy> std::pair<size_t, size_t> finalizeSymbolTable();
35 Error finalizeRelocTargets();
36 Error finalizeSymbolContents();
37 void layoutSections();
42 void writeHeaders(
bool IsBigObj);
44 template <
class SymbolTy>
void writeSymbolStringTables();
48 Error patchDebugDirectory();
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
Utility for building string tables with deduplicated suffixes.
COFFWriter(Object &Obj, raw_ostream &Out)
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.