diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2015-02-10 21:38:25 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2015-02-10 21:38:25 +0000 |
commit | 0ca59894aa609c67c41bd8569a111a99a1c91ac0 (patch) | |
tree | 9cec20f8f9113cbb5acc087cb7886c0b2bacfa12 /llvm/lib/Object/Archive.cpp | |
parent | ea6c8e9c1f4d9b0b52476946f45b983ae2c150ab (diff) | |
download | bcm5719-llvm-0ca59894aa609c67c41bd8569a111a99a1c91ac0.tar.gz bcm5719-llvm-0ca59894aa609c67c41bd8569a111a99a1c91ac0.zip |
[Object] Reformat the code with clang-format
No functional changes.
llvm-svn: 228751
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
-rw-r--r-- | llvm/lib/Object/Archive.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp index c8d510f03de..305dab06fd3 100644 --- a/llvm/lib/Object/Archive.cpp +++ b/llvm/lib/Object/Archive.cpp @@ -351,8 +351,8 @@ ErrorOr<Archive::child_iterator> Archive::Symbol::getMember() const { const char *Offsets = Buf + 4; uint32_t Offset = 0; if (Parent->kind() == K_GNU) { - Offset = *(reinterpret_cast<const support::ubig32_t*>(Offsets) - + SymbolIndex); + Offset = + *(reinterpret_cast<const support::ubig32_t *>(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::child_iterator> Archive::Symbol::getMember() const { uint32_t MemberCount = *reinterpret_cast<const support::ulittle32_t*>(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<const support::ulittle32_t*>(Buf); @@ -495,8 +495,7 @@ Archive::symbol_iterator Archive::symbol_end() const { buf += 4 + (member_count * 4); // Skip offsets. symbol_count = *reinterpret_cast<const support::ulittle32_t*>(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 { |