forked from OSchip/llvm-project
It was pointed out to me that an offset of 0 makes sense for ObjC, but not always for C++, and this API claims to be general enough that it should not drop C++ usability on the floor for no good reason. Fix it with an explicit offset argument
llvm-svn: 216487
This commit is contained in:
parent
ca7b0aaa36
commit
59953f0dbe
|
@ -677,8 +677,8 @@ public:
|
|||
GetSyntheticChildAtOffset(uint32_t offset, const ClangASTType& type, bool can_create);
|
||||
|
||||
virtual lldb::ValueObjectSP
|
||||
GetSyntheticBase (const ClangASTType& type, bool can_create);
|
||||
|
||||
GetSyntheticBase (uint32_t offset, const ClangASTType& type, bool can_create);
|
||||
|
||||
virtual lldb::ValueObjectSP
|
||||
GetDynamicValue (lldb::DynamicValueType valueType);
|
||||
|
||||
|
|
|
@ -2216,7 +2216,7 @@ ValueObject::GetSyntheticChildAtOffset(uint32_t offset, const ClangASTType& type
|
|||
}
|
||||
|
||||
ValueObjectSP
|
||||
ValueObject::GetSyntheticBase (const ClangASTType& type, bool can_create)
|
||||
ValueObject::GetSyntheticBase (uint32_t offset, const ClangASTType& type, bool can_create)
|
||||
{
|
||||
ValueObjectSP synthetic_child_sp;
|
||||
|
||||
|
@ -2234,7 +2234,6 @@ ValueObject::GetSyntheticBase (const ClangASTType& type, bool can_create)
|
|||
if (!can_create)
|
||||
return ValueObjectSP();
|
||||
|
||||
const uint32_t offset = 0;
|
||||
const bool is_base_class = true;
|
||||
|
||||
ValueObjectChild *synthetic_child = new ValueObjectChild(*this,
|
||||
|
|
Loading…
Reference in New Issue