HomePhabricator

[llvm] support graceful failure of DataLayout parsing

Authored by ftynse on Aug 17 2020, 4:34 AM.

Description

[llvm] support graceful failure of DataLayout parsing

Existing implementation always aborts on syntax errors in a DataLayout
description. While this is meaningful for consuming textual IR modules, it is
inconvenient for users that may need fine-grained control over the layout from,
e.g., command-line options. Propagate errors through the parsing functions and
only abort in the top-level parsing function instead.

Reviewed By: mehdi_amini

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

Details

Committed
ftynseAug 17 2020, 6:10 AM
Reviewer
mehdi_amini
Differential Revision
D85650: [llvm] support graceful failure of DataLayout parsing
Parents
rGf5f22f04481b: [lldb] Skip TestSimulatorPlatform with sanitized builds
Branches
Unknown
Tags
Unknown