This diff implements -o <file> option https://sourceware.org/binutils/docs/binutils/strip.html .
Test plan: make check-all
Differential D47505
[llvm-strip] Add -o option alexander-shaposhnikov on May 29 2018, 4:40 PM. Authored by
Details This diff implements -o <file> option https://sourceware.org/binutils/docs/binutils/strip.html . Test plan: make check-all
Diff Detail
Event TimelineComment Actions Just two nits for me
Comment Actions This is probably a bit nit-picky, but we should probably have a test to show that -o a.o -o b.o only results in one output file, namely b.o. Otherwise, looks fine to me. Comment Actions @jhenderson - in your opinion, what is the best portable way to check that a file doesn't exist - i mean what is your personal preference ? Comment Actions I don't have a particular preference, and I don't know of an easy way to test a file doesn't exist in lit. However, one possibility might be to copy %t to some location (say %t-should-remain-the-same) and then do something like llvm-strip %t-whatever -o %t-should-remain-the-same -o %t-should-be-stripped, and then do a diff of the one that should not be changed against %t. |