[PATCH] D61993: [llvm-objcopy] Add file names to error messages

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 02:46:45 PDT 2019


jhenderson added a comment.

With a lot of the tests, it might be nice to make sure the file name matches exactly. This can be achieved using FileCheck patterns and command-line options like so:

  # RUN: yaml2obj %s > %t.o
  # RUN: not llvm-objcopy %t.o %t2.o <options> | FileCheck %s -DFILE=%t.o
  # CHECK: error: [[FILE]]: error message...

This makes sure we use the right filename in the error, either the input or output filename.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61993/new/

https://reviews.llvm.org/D61993





More information about the llvm-commits mailing list