[llvm] r313935 - Use raw_ostream in functions that don't need to seek. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 16:06:23 PDT 2017
Author: rafael
Date: Thu Sep 21 16:06:23 2017
New Revision: 313935
URL: http://llvm.org/viewvc/llvm-project?rev=313935&view=rev
Log:
Use raw_ostream in functions that don't need to seek. NFC.
Modified:
llvm/trunk/lib/Object/ArchiveWriter.cpp
Modified: llvm/trunk/lib/Object/ArchiveWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ArchiveWriter.cpp?rev=313935&r1=313934&r2=313935&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ArchiveWriter.cpp (original)
+++ llvm/trunk/lib/Object/ArchiveWriter.cpp Thu Sep 21 16:06:23 2017
@@ -111,7 +111,7 @@ Expected<NewArchiveMember> NewArchiveMem
}
template <typename T>
-static void printWithSpacePadding(raw_fd_ostream &OS, T Data, unsigned Size) {
+static void printWithSpacePadding(raw_ostream &OS, T Data, unsigned Size) {
uint64_t OldPos = OS.tell();
OS << Data;
unsigned SizeSoFar = OS.tell() - OldPos;
@@ -143,7 +143,7 @@ static void print32(raw_ostream &Out, ob
}
static void printRestOfMemberHeader(
- raw_fd_ostream &Out, const sys::TimePoint<std::chrono::seconds> &ModTime,
+ raw_ostream &Out, const sys::TimePoint<std::chrono::seconds> &ModTime,
unsigned UID, unsigned GID, unsigned Perms, unsigned Size) {
printWithSpacePadding(Out, sys::toTimeT(ModTime), 12);
@@ -158,7 +158,7 @@ static void printRestOfMemberHeader(
}
static void
-printGNUSmallMemberHeader(raw_fd_ostream &Out, StringRef Name,
+printGNUSmallMemberHeader(raw_ostream &Out, StringRef Name,
const sys::TimePoint<std::chrono::seconds> &ModTime,
unsigned UID, unsigned GID, unsigned Perms,
unsigned Size) {
@@ -167,7 +167,7 @@ printGNUSmallMemberHeader(raw_fd_ostream
}
static void
-printBSDMemberHeader(raw_fd_ostream &Out, StringRef Name,
+printBSDMemberHeader(raw_ostream &Out, StringRef Name,
const sys::TimePoint<std::chrono::seconds> &ModTime,
unsigned UID, unsigned GID, unsigned Perms,
unsigned Size) {
@@ -189,7 +189,7 @@ static bool useStringTable(bool Thin, St
}
static void
-printMemberHeader(raw_fd_ostream &Out, object::Archive::Kind Kind, bool Thin,
+printMemberHeader(raw_ostream &Out, object::Archive::Kind Kind, bool Thin,
StringRef Name,
std::vector<unsigned>::iterator &StringMapIndexIter,
const sys::TimePoint<std::chrono::seconds> &ModTime,
More information about the llvm-commits
mailing list