[PATCH] D85650: [llvm] support graceful failure of DataLayout parsing

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 07:04:53 PDT 2020


ftynse created this revision.
ftynse added a reviewer: mehdi_amini.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
ftynse requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85650

Files:
  llvm/include/llvm/IR/DataLayout.h
  llvm/lib/IR/DataLayout.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85650.284350.patch
Type: text/x-patch
Size: 19316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200810/a631bad1/attachment.bin>


More information about the llvm-commits mailing list