[all-commits] [llvm/llvm-project] 1d9b86: Unify the return value of GetByteSize to an llvm::...
adrian-prantl via All-commits
all-commits at lists.llvm.org
Sat Jul 25 08:29:00 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1d9b860fb6a85df33fd52fcacc6a5efb421621bd
https://github.com/llvm/llvm-project/commit/1d9b860fb6a85df33fd52fcacc6a5efb421621bd
Author: Adrian Prantl <aprantl at apple.com>
Date: 2020-07-25 (Sat, 25 Jul 2020)
Changed paths:
M lldb/include/lldb/Core/ValueObject.h
M lldb/include/lldb/Core/ValueObjectCast.h
M lldb/include/lldb/Core/ValueObjectChild.h
M lldb/include/lldb/Core/ValueObjectConstResult.h
M lldb/include/lldb/Core/ValueObjectDynamicValue.h
M lldb/include/lldb/Core/ValueObjectMemory.h
M lldb/include/lldb/Core/ValueObjectRegister.h
M lldb/include/lldb/Core/ValueObjectSyntheticFilter.h
M lldb/include/lldb/Core/ValueObjectVariable.h
M lldb/include/lldb/Expression/ExpressionVariable.h
M lldb/include/lldb/Target/StackFrameRecognizer.h
M lldb/source/API/SBValue.cpp
M lldb/source/Commands/CommandObjectWatchpoint.cpp
M lldb/source/Core/ValueObject.cpp
M lldb/source/Core/ValueObjectCast.cpp
M lldb/source/Core/ValueObjectConstResult.cpp
M lldb/source/Core/ValueObjectDynamicValue.cpp
M lldb/source/Core/ValueObjectMemory.cpp
M lldb/source/Core/ValueObjectRegister.cpp
M lldb/source/Core/ValueObjectSyntheticFilter.cpp
M lldb/source/Core/ValueObjectVariable.cpp
M lldb/source/Expression/ExpressionVariable.cpp
M lldb/source/Expression/Materializer.cpp
M lldb/source/Target/StackFrame.cpp
Log Message:
-----------
Unify the return value of GetByteSize to an llvm::Optional<uint64_t> (NFC-ish)
This cleanup patch unifies all methods called GetByteSize() in the
ValueObject hierarchy to return an optional, like the methods in
CompilerType do. This means fewer magic 0 values, which could fix bugs
down the road in languages where types can have a size of zero, such
as Swift and C (but not C++).
Differential Revision: https://reviews.llvm.org/D84285
More information about the All-commits
mailing list