[PATCH] D34764: Introduce FileEdit utility

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 28 11:18:54 PDT 2017


On Wed, Jun 28, 2017 at 10:57 AM, David Blaikie via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> On Wed, Jun 28, 2017 at 10:47 AM Reid Kleckner via Phabricator <
> reviews at reviews.llvm.org> wrote:
>
>> rnk added a comment.
>>
>> The tests in llvm/test/tools/llvm-symbolizer are a good place to use
>> this. See the ADDR: sed+grep pattern I used to extract some hex numbers
>> from the file.
>>
>
> For myself, that doesn't motivate this feature compared to the
> test/DebugInfo/llvm-symbolizer.test file that contains a bunch of echo
> lines. It's nice, for sure, but doesn't do a lot for me (& if removing the
> syntactic overhead of "RUN: echo 0xXXXX >> %t.input" (to "ADDR: 0xXXXX")
> was important, it could be put in a separate file - not like the addresses
> add a lot of meaningful context to the test file. They're pretty much
> arbitrary/magic numbers (necessarily, not intended as a criticism by any
> means).
>

Please, please, please, do not use repeated echo and >>. It's why the LLD
test suite takes 30s to run on Windows and 3s to run on Linux. Rewriting
the ELF linker script tests to use FileEdit (FileSplit?) would go a long
way towards speeding them up.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170628/a675947d/attachment.html>


More information about the llvm-commits mailing list