From: Tom Hughes Date: Thu, 22 Jan 2009 13:44:03 +0000 (+0000) Subject: Removed unused round_Addr_upwards function. X-Git-Tag: svn/VALGRIND_3_5_0~1062 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33a768dabc3aa508253feb7a8ae8679c0943ae73;p=thirdparty%2Fvalgrind.git Removed unused round_Addr_upwards function. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9022 --- diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c index 9d5a644429..57a8bde1f2 100644 --- a/coregrind/m_debuginfo/readelf.c +++ b/coregrind/m_debuginfo/readelf.c @@ -956,15 +956,6 @@ static void* INDEX_BIS ( void* base, Word idx, Word scale ) { return (void*)( ((UChar*)base) + idx * scale ); } -static Addr round_Addr_upwards ( Addr a, UInt align ) -{ - if (align > 0) { - vg_assert(-1 != VG_(log2)(align)); - a = VG_ROUNDUP(a, align); - } - return a; -} - /* Find the file offset corresponding to SVMA by using the program headers. This is taken from binutils-2.17/binutils/readelf.c