HomePhabricator

[Core] GetAPInt should return an Optional

Authored by xiaobai on Aug 26 2019, 2:09 PM.

Description

[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

Details

Committed
xiaobaiAug 26 2019, 2:09 PM
Parents
rG90e00bd8f3e1: Debug Info: Support for DW_AT_export_symbols for anonymous structs
Branches
Unknown
Tags
Unknown