Use raw_pwrite_stream in the object writer/streamer.

The ELF object writer will take advantage of that in the next commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-04-14 22:14:34 +00:00
parent f49f1560d2
commit c98092e28d
74 changed files with 192 additions and 152 deletions

View File

@@ -244,7 +244,7 @@ namespace {
}
MCObjectWriter *createObjectWriter(raw_ostream &OS) const override {
MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override {
uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(OSType);
return createSparcELFObjectWriter(OS, is64Bit(), OSABI);
}