HomePhabricator

[llvm-exegesis] Improve error reporting in Assembler.cpp

Authored by mstojanovic on Feb 10 2020, 7:30 AM.

Description

[llvm-exegesis] Improve error reporting in Assembler.cpp

Followup to D74085.
Replace the use of report_fatal_error() with returning the error to
llvm-exegesis.cpp and handling it there.

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

Details

Committed
mstojanovicFeb 18 2020, 5:30 AM
Differential Revision
D74325: [llvm-exegesis] Improve error reporting in Assembler.cpp
Parents
rGc30d8f7c910d: [IR] Set name when inserting 'llvm::Value*'
Branches
Unknown
Tags
Unknown

Event Timeline

Looks like there are calls to assembleToStream which didn't get updated to check that the return value is valid, breaking bots that treat warnings as errors: http://lab.llvm.org:8011/builders/clang-ppc64le-rhel/builds/1389