This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Improve --add-section argument string parsing
ClosedPublic

Authored by sdmitriev on Jul 26 2019, 1:10 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

sdmitriev created this revision.Jul 26 2019, 1:10 PM
sdmitriev updated this revision to Diff 212008.Jul 26 2019, 2:36 PM
grimar added a subscriber: grimar.Jul 27 2019, 4:15 AM
grimar added inline comments.
llvm/test/tools/llvm-objcopy/COFF/add-section.test
44 ↗(On Diff #212008)

If you do not report the file name anymore then you do not need -DFILE=%t

49 ↗(On Diff #212008)

The same.

llvm/test/tools/llvm-objcopy/ELF/add-section.test
41 ↗(On Diff #212008)

Perhaps DFILE1 and DFILE2 would be better when you have 2 files.

I'd also suggest renaming CHECK-ERR* -> ERR*.

53 ↗(On Diff #212008)

FWIW I'd omit llvm-objcopy{{(.exe)?}}: part here and above. It doesn't seem useful actually to test.

sdmitriev updated this revision to Diff 212057.Jul 27 2019, 8:58 AM
sdmitriev marked 7 inline comments as done.Jul 27 2019, 9:01 AM
sdmitriev added inline comments.
llvm/test/tools/llvm-objcopy/COFF/add-section.test
44 ↗(On Diff #212008)

Right.

llvm/test/tools/llvm-objcopy/ELF/add-section.test
41 ↗(On Diff #212008)

Done.

53 ↗(On Diff #212008)

Done.

abrachet marked an inline comment as done.Jul 27 2019, 11:17 AM
abrachet added inline comments.
llvm/test/tools/llvm-objcopy/ELF/add-section.test
41 ↗(On Diff #212008)

Hi @sdmitriev there is a done check box in the top right of an inline comment that is generally preferred to responding done. That way others can us the 'Hide "done" Inlines" option and it's also less noise.

jhenderson accepted this revision.Jul 29 2019, 6:20 AM

LGTM. Thanks!

This revision is now accepted and ready to land.Jul 29 2019, 6:20 AM
This revision was automatically updated to reflect the committed changes.
sdmitriev marked 4 inline comments as done.