From: Rafael Espindola Date: Wed, 8 Jul 2015 17:26:24 +0000 (+0000) Subject: Inline function into only use. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4ea795b15aa977e80bf4061029473f896eb94067;p=oota-llvm.git Inline function into only use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241692 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Object/ArchiveWriter.cpp b/lib/Object/ArchiveWriter.cpp index 8ac8d7c31a2..41c82e7da74 100644 --- a/lib/Object/ArchiveWriter.cpp +++ b/lib/Object/ArchiveWriter.cpp @@ -116,24 +116,18 @@ static void printMemberHeader(raw_fd_ostream &Out, StringRef Name, printRestOfMemberHeader(Out, ModTime, UID, GID, Perms, Size); } -static void printMemberHeader(raw_fd_ostream &Out, unsigned NameOffset, - const sys::TimeValue &ModTime, unsigned UID, - unsigned GID, unsigned Perms, unsigned Size) { - Out << '/'; - printWithSpacePadding(Out, NameOffset, 15); - printRestOfMemberHeader(Out, ModTime, UID, GID, Perms, Size); -} - static void printMemberHeader(raw_fd_ostream &Out, StringRef Name, std::vector::iterator &StringMapIndexIter, const sys::TimeValue &ModTime, unsigned UID, unsigned GID, unsigned Perms, unsigned Size) { - if (Name.size() < 16) + if (Name.size() < 16) { printMemberHeader(Out, Name, ModTime, UID, GID, Perms, Size); - else - printMemberHeader(Out, *StringMapIndexIter++, ModTime, UID, GID, Perms, - Size); + return; + } + Out << '/'; + printWithSpacePadding(Out, *StringMapIndexIter++, 15); + printRestOfMemberHeader(Out, ModTime, UID, GID, Perms, Size); } static void writeStringTable(raw_fd_ostream &Out,