I enabled some extra warnings for hidden local variables and for hidden
virtual functions and caught some things and did some general code cleanup.

llvm-svn: 108299
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 4a1e002..c32bdc2 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -540,7 +540,7 @@
     lldb::Encoding encoding = Type::GetEncoding (GetOpaqueClangQualType(), count);
 
     char *end = NULL;
-    size_t byte_size = GetByteSize();
+    const size_t byte_size = GetByteSize();
     switch (encoding)
     {
     case eEncodingInvalid:
@@ -580,7 +580,6 @@
 
     case eEncodingIEEE754:
         {
-            const size_t byte_size = GetByteSize();
             const off_t byte_offset = GetByteOffset();
             uint8_t *dst = const_cast<uint8_t *>(m_data.PeekData(byte_offset, byte_size));
             if (dst != NULL)