HomePhabricator

Simplify ObjectFile::GetArchitecture

Description

Simplify ObjectFile::GetArchitecture

Summary:
instead of returning the architecture through by-ref argument and a
boolean value indicating success, we can just return the ArchSpec
directly. Since the ArchSpec already has an invalid state, it can be
used to denote the failure without the additional bool.

Reviewers: clayborg, zturner, espindola

Subscribers: emaste, arichardson, JDevlieghere, lldb-commits

Differential Revision: https://reviews.llvm.org/D56129

Details

Committed
labathJan 3 2019, 2:37 AM
Differential Revision
D56129: Simplify ObjectFile::GetArchitecture
Branches
Unknown
Tags
Unknown