diff options
author | Enrico Granata <egranata@apple.com> | 2015-01-28 00:07:51 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-01-28 00:07:51 +0000 |
commit | 1cd5e921e1011a31ca1de57444b0649a921ccf33 (patch) | |
tree | cd3cfcdd9c8e8afa56132e8e00f1579bb45fb9e5 /lldb/source/Core/ValueObjectVariable.cpp | |
parent | b06fe2a704e5132b53f3826823c37caafe5dc23b (diff) | |
download | bcm5719-llvm-1cd5e921e1011a31ca1de57444b0649a921ccf33.tar.gz bcm5719-llvm-1cd5e921e1011a31ca1de57444b0649a921ccf33.zip |
Preparatory infrastructural work to support dynamically determining sizes of ObjC types via the runtime
This is necessary because the byte size of an ObjC class type is not reliably statically knowable (e.g. because superclasses sit deep in frameworks that we have no debug info for)
The lack of reliable size info is a problem when trying to freeze-dry an ObjC instance (not the pointer, the pointee)
This commit lays the foundation for having language runtimes help in figuring out byte sizes, and having ClangASTType ask for runtime help
No feature change as no runtime actually implements the logic, and nowhere is an ExecutionContext passed in yet
llvm-svn: 227274
Diffstat (limited to 'lldb/source/Core/ValueObjectVariable.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectVariable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp index ab74a50e7cd..e4fd212cbfa 100644 --- a/lldb/source/Core/ValueObjectVariable.cpp +++ b/lldb/source/Core/ValueObjectVariable.cpp @@ -110,7 +110,7 @@ ValueObjectVariable::GetByteSize() if (!type.IsValid()) return 0; - return type.GetByteSize(); + return type.GetByteSize(nullptr); } lldb::ValueType |