This changes COFF to use the output buffer that is reset by the error
handler.
llvm-svn: 318062
// The writer writes a SymbolTable result to a file.
class Writer {
public:
+ Writer() : Buffer(errorHandler().OutputBuffer) {}
void run();
private:
uint32_t getSizeOfInitializedData();
std::map<StringRef, std::vector<DefinedImportData *>> binImports();
- std::unique_ptr<FileOutputBuffer> Buffer;
+ std::unique_ptr<FileOutputBuffer> &Buffer;
std::vector<OutputSection *> OutputSections;
std::vector<char> Strtab;
std::vector<llvm::object::coff_symbol16> OutputSymtab;