summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-07-08 17:26:24 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-07-08 17:26:24 +0000
commit65a9953d691f603828df58208a1a9fd23aa9a6a9 (patch)
tree2a75dbc0f8f8556ef215cb05e80614e46467ca0c /llvm/lib/Object
parentc291a4b212b531bd0b3a007657ad0b530e84b154 (diff)
downloadbcm5719-llvm-65a9953d691f603828df58208a1a9fd23aa9a6a9.tar.gz
bcm5719-llvm-65a9953d691f603828df58208a1a9fd23aa9a6a9.zip
Inline function into only use.
llvm-svn: 241692
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r--llvm/lib/Object/ArchiveWriter.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/llvm/lib/Object/ArchiveWriter.cpp b/llvm/lib/Object/ArchiveWriter.cpp
index 8ac8d7c31a2..41c82e7da74 100644
--- a/llvm/lib/Object/ArchiveWriter.cpp
+++ b/llvm/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<unsigned>::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,
OpenPOWER on IntegriCloud