[all-commits] [llvm/llvm-project] 874aef: [llvm] support graceful failure of DataLayout parsing

ftynse via All-commits all-commits at lists.llvm.org
Mon Aug 17 06:10:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 874aef875d0cd04b33f25bb71b534cbb0d6220ae
      https://github.com/llvm/llvm-project/commit/874aef875d0cd04b33f25bb71b534cbb0d6220ae
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-08-17 (Mon, 17 Aug 2020)

  Changed paths:
    M llvm/include/llvm/IR/DataLayout.h
    M llvm/lib/IR/DataLayout.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list