[PATCH] Call sys::fs::remove for options::OT_DISABLE

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Feb 12 07:09:03 PST 2015


On 12 February 2015 at 09:25, H.J. Lu <hjl.tools at gmail.com> wrote:
> On Thu, Feb 12, 2015 at 6:15 AM, Rafael EspĂ­ndola
> <rafael.espindola at gmail.com> wrote:
>> I assume this shows up with bfd ld.
>>
>> Is this already covered by some test when run with bfd ld instead of gold?
>
> test/tools/gold/emit-llvm.ll has
>
> ; RUN: rm -f %t4.o
> ; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \
> ; RUN:     -m elf_x86_64 --plugin-opt=disable-output \
> ; RUN:    -shared %t.o -o %t4.o
> ; RUN: not test -a %t4.o
>
> It fails with ld.

OK. LGTM with a comment saying that bfd create the output file early.

Cheers,
Rafael




More information about the llvm-commits mailing list