r211844 - Add test coverage for .bc input in the frontend

Alp Toker alp at nuanti.com
Sun Jun 29 14:48:33 PDT 2014


On 30/06/2014 00:33, Rafael EspĂ­ndola wrote:
> On 29 June 2014 17:31, Alp Toker <alp at nuanti.com> wrote:
>> On 30/06/2014 00:24, Rafael EspĂ­ndola wrote:
>>>> +// RUN: %clang_cc1 -S -o - %t.bc > %t.bc.s
>>> Is this redirect needed?
>>
>> Yes, it turned out to be needed in subsequent commit r211853, in order to
>> filter out '.file' directives which appear to be based on the *input*
>> filename in ELF assembly.
>>
> Yes, sorry. I was catching up on email and didn't noticed that the
> test was already updated.

Any idea why ELF assembly emits this special initial '.file' directive 
that's derived from the active tool's input filename rather than IR, as 
with subsequent '.file' directives? (Or, indeed why the other asm 
formats don't share the behaviour?)




> Cheers,
> Rafael

-- 
http://www.nuanti.com
the browser experts




More information about the cfe-commits mailing list