[Core] GetAPInt should return an Optional
authorAlex Langford <apl@fb.com>
Mon, 26 Aug 2019 21:09:57 +0000 (21:09 +0000)
committerAlex Langford <apl@fb.com>
Mon, 26 Aug 2019 21:09:57 +0000 (21:09 +0000)
commit5e777e1ed2889953153c02caa2fbf2b1979dc21f
tree6060bcb8b777187ae614a21067d32a38de33f183
parent90e00bd8f3e1e03a9390c2531b90117498d2c78f
[Core] GetAPInt should return an Optional

The current implementation returns a bool for indicating success and
whether or not the APInt passed by reference was populated. Instead of
doing that, I think it makes more sense to return an Optional<APInt>.

llvm-svn: 369970
lldb/source/Core/DumpDataExtractor.cpp