[llvm] r216647 - MC: Don't crash when the COFF section limit is reached

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Aug 28 07:45:00 PDT 2014


On 28 August 2014 00:02, David Majnemer <david.majnemer at gmail.com> wrote:
> Author: majnemer
> Date: Wed Aug 27 23:02:50 2014
> New Revision: 216647
>
> URL: http://llvm.org/viewvc/llvm-project?rev=216647&view=rev
> Log:
> MC: Don't crash when the COFF section limit is reached
>
> I've decided not to commit a test, it takes 2.5 seconds to run on my an
> incredibly strong machine.

The test is just a long sequence of .section? it might be worth it
debugging why it is so slow. The corresponding ELF test is
test/MC/ELF/many-sections-2.s and on my laptop:

$ time ./bin/llvm-lit ~/llvm/llvm/test/MC/ELF/many-sections-2.s
-- Testing: 1 tests, 1 threads --
PASS: LLVM :: MC/ELF/many-sections-2.s (1 of 1)
Testing Time: 0.60s
  Expected Passes    : 1

real 0m0.696s
user 0m0.549s
sys 0m0.163s

Cheers,
Rafael



More information about the llvm-commits mailing list