From: Simon Atanasyan Date: Tue, 10 Feb 2015 21:38:25 +0000 (+0000) Subject: [Object] Reformat the code with clang-format X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=910c039f35801f510bb02b4166fc230c99d8e6d7;p=oota-llvm.git [Object] Reformat the code with clang-format No functional changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228751 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Object/Archive.cpp b/lib/Object/Archive.cpp index c8d510f03de..305dab06fd3 100644 --- a/lib/Object/Archive.cpp +++ b/lib/Object/Archive.cpp @@ -351,8 +351,8 @@ ErrorOr Archive::Symbol::getMember() const { const char *Offsets = Buf + 4; uint32_t Offset = 0; if (Parent->kind() == K_GNU) { - Offset = *(reinterpret_cast(Offsets) - + SymbolIndex); + Offset = + *(reinterpret_cast(Offsets) + SymbolIndex); } else if (Parent->kind() == K_BSD) { // The SymbolIndex is an index into the ranlib structs that start at // Offsets (the first uint32_t is the number of bytes of the ranlib @@ -366,8 +366,8 @@ ErrorOr Archive::Symbol::getMember() const { uint32_t MemberCount = *reinterpret_cast(Buf); // Skip offsets. - Buf += sizeof(support::ulittle32_t) - + (MemberCount * sizeof(support::ulittle32_t)); + Buf += sizeof(support::ulittle32_t) + + (MemberCount * sizeof(support::ulittle32_t)); uint32_t SymbolCount = *reinterpret_cast(Buf); @@ -495,8 +495,7 @@ Archive::symbol_iterator Archive::symbol_end() const { buf += 4 + (member_count * 4); // Skip offsets. symbol_count = *reinterpret_cast(buf); } - return symbol_iterator( - Symbol(this, symbol_count, 0)); + return symbol_iterator(Symbol(this, symbol_count, 0)); } Archive::child_iterator Archive::findSym(StringRef name) const {