diff options
| author | Enrico Granata <egranata@apple.com> | 2015-01-28 01:09:45 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2015-01-28 01:09:45 +0000 |
| commit | 951bdd5f4121d406bb043e3c2df0b42b737af263 (patch) | |
| tree | bc8e863c0b1e596e48e9557d80293d9004fcb6f2 /lldb/source/Core/ValueObjectVariable.cpp | |
| parent | 65b0e7630db3b0eb5c940150eccd55fb797e51bc (diff) | |
| download | bcm5719-llvm-951bdd5f4121d406bb043e3c2df0b42b737af263.tar.gz bcm5719-llvm-951bdd5f4121d406bb043e3c2df0b42b737af263.zip | |
Move several GetByteSize() calls over to the brave new world of taking an ExecutionContext*
And since enough of these are doing the right thing, add a test case to verify we are doing the right thing with freeze drying ObjC object types
Fixes rdar://18092770
llvm-svn: 227282
Diffstat (limited to 'lldb/source/Core/ValueObjectVariable.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObjectVariable.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp index e4fd212cbfa..ed2aeb3d963 100644 --- a/lldb/source/Core/ValueObjectVariable.cpp +++ b/lldb/source/Core/ValueObjectVariable.cpp @@ -105,12 +105,14 @@ ValueObjectVariable::CalculateNumChildren() uint64_t ValueObjectVariable::GetByteSize() { + ExecutionContext exe_ctx(GetExecutionContextRef()); + ClangASTType type(GetClangType()); if (!type.IsValid()) return 0; - return type.GetByteSize(nullptr); + return type.GetByteSize(&exe_ctx); } lldb::ValueType |

