Replacing a "no clue why" comment with the explanation it was demanding
authorEnrico Granata <egranata@apple.com>
Tue, 22 Jan 2013 01:43:59 +0000 (01:43 +0000)
committerEnrico Granata <egranata@apple.com>
Tue, 22 Jan 2013 01:43:59 +0000 (01:43 +0000)
llvm-svn: 173111

lldb/include/lldb/Core/FormatNavigator.h

index 76c80bb..789f2d1 100644 (file)
@@ -525,8 +525,10 @@ protected:
         return false;
     }
     
+    // we are separately passing in valobj and type because the valobj is fixed (and is used for ObjC discovery and bitfield size)
+    // but the type can change (e.g. stripping pointers, ...)
     bool Get (ValueObject& valobj,
-              clang::QualType type, // TODO: find out why "type" is passed in the type when it belongs to valobj? Can it ever differ?
+              clang::QualType type,
               MapValueType& entry,
               lldb::DynamicValueType use_dynamic,
               uint32_t& reason)