<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 12, 2016 at 11:57 AM, Davide Italiano <span dir="ltr"><<a href="mailto:davide@freebsd.org" target="_blank">davide@freebsd.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Jan 12, 2016 at 11:45 AM, David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:<br>
><br>
><br>
> On Mon, Dec 21, 2015 at 6:10 AM, Davide Italiano via llvm-commits<br>
> <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br>
>><br>
>> Author: davide<br>
>> Date: Mon Dec 21 08:10:54 2015<br>
>> New Revision: 256156<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=256156&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=256156&view=rev</a><br>
>> Log:<br>
>> [llvm-objdump] Use appropriate helper. NFC.<br>
><br>
><br>
> Test case?<br>
><br>
<br>
</span>test/tools/llvm-objdump/invalid-input.test should somehow cover this,<br>
I guess.</blockquote><div><br></div><div>But there were no changes for that test when this commit was made - so it doesn't seem like it would be testing the change you made (in the sense that it wouldn't catch a regression caused by reverting this patch).<br><br>What would fail if I revert this patch or otherwise broke the functionality you were fixing in this commit?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> It's a little bit weirder than that. For some reason (I'm not<br>
aware of), MachO has a different path for opening the binary and<br>
parsing it so it's not super easy to hit the code I changed.</blockquote><div><br></div><div>Not sure I follow - we can have MachO binaries committed to ensure the MachO codepath remains functioning (or non-MachO for the other side too).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I also<br>
guess this code can be eventually removed (or even better, merged with<br>
the "main" codepath for ELF/COFF) but a non-trivial amount of work is<br>
required to make it happen. It's in my TODO list but nowhere near the<br>
top, sorry.<br>
<br>
--<br>
Davide<br>
</blockquote></div><br></div></div>