[PATCH] D81097: [llvm-objcopy] Reorder --dump-section before --remove-section for ELF.
Sameer Arora via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 06:34:14 PDT 2020
sameerarora101 marked 5 inline comments as done.
sameerarora101 added inline comments.
================
Comment at: llvm/test/tools/llvm-objcopy/ELF/dump-section-before-add-remove.test:9
+# RUN: llvm-objcopy --dump-section .test2=%t1 -R .test2 %t %t2
+# RUN: od -t x1 %t1 | FileCheck %s --ignore-case --match-full-lines
+
----------------
jhenderson wrote:
> Ktwu wrote:
> > alexshap wrote:
> > > nit: to me it's somehow easier to read the test when the "check:" lines follow the corresponding invocations:
> > >
> > > ```
> > > # RUN: llvm-objcopy ...
> > > # RUN: llvm-objdump %t | FileCheck %s
> > >
> > > # CHECK: Expected line 1
> > > # CHECK: Expected line 2
> > >
> > > !ELF
> > > FileHeader:
> > > Class: ...
> > > ```
> > > not sure how it compares with what @MaskRay mentioned above, I do not have a strong opinion regarding this.
> > >
> > I visually prefer CHECKs after RUNs as well, and it's what folks in lld have been doing, too (and it's also consistent with the NODUMP check below -- the FileCheck happens before the NODUMP).
> >
> > </2cents>
> +1 - this is also my prefererred style
ok, moving it down then.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81097/new/
https://reviews.llvm.org/D81097
More information about the llvm-commits
mailing list