From e7a1b674e3c54b2b865b1dcc960dc9f27f157170 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Thu, 7 Feb 2013 01:43:18 +0000 Subject: [PATCH] 80-col llvm-svn: 174572 --- include/llvm/Object/ELF.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index cb734002569..a84461020e3 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -2246,7 +2246,8 @@ template typename ELFObjectFile::dyn_iterator ELFObjectFile::begin_dynamic_table() const { if (dot_dynamic_sec) - return dyn_iterator(dot_dynamic_sec->sh_entsize, (const char *)base() + dot_dynamic_sec->sh_offset); + return dyn_iterator(dot_dynamic_sec->sh_entsize, + (const char *)base() + dot_dynamic_sec->sh_offset); return dyn_iterator(0, 0); } @@ -2254,7 +2255,8 @@ template typename ELFObjectFile::dyn_iterator ELFObjectFile::end_dynamic_table() const { if (dot_dynamic_sec) - return dyn_iterator(dot_dynamic_sec->sh_entsize, (const char *)base() + dot_dynamic_sec->sh_offset + dot_dynamic_sec->sh_size); + return dyn_iterator(dot_dynamic_sec->sh_entsize, (const char *)base() + + dot_dynamic_sec->sh_offset + dot_dynamic_sec->sh_size); return dyn_iterator(0, 0); } @@ -2298,14 +2300,16 @@ template error_code ELFObjectFile::getLibraryNext(DataRefImpl Data, LibraryRef &Result) const { // Use the same DataRefImpl format as DynRef. - dyn_iterator i = dyn_iterator(dot_dynamic_sec->sh_entsize, reinterpret_cast(Data.p)); + dyn_iterator i = dyn_iterator(dot_dynamic_sec->sh_entsize, + reinterpret_cast(Data.p)); dyn_iterator e = end_dynamic_table(); // Skip the current dynamic table entry. ++i; // Find the next DT_NEEDED entry. - for (; i != e && i->getTag() != ELF::DT_NEEDED; ++i); + for (; i != e && i->getTag() != ELF::DT_NEEDED; ++i) + ; DataRefImpl DRI; DRI.p = reinterpret_cast(&*i); @@ -2316,7 +2320,8 @@ error_code ELFObjectFile::getLibraryNext(DataRefImpl Data, template error_code ELFObjectFile::getLibraryPath(DataRefImpl Data, StringRef &Res) const { - dyn_iterator i = dyn_iterator(dot_dynamic_sec->sh_entsize, reinterpret_cast(Data.p)); + dyn_iterator i = dyn_iterator(dot_dynamic_sec->sh_entsize, + reinterpret_cast(Data.p)); if (i == end_dynamic_table()) report_fatal_error("getLibraryPath() called on iterator end");