[PATCH]: Add a flag to the DWARF Compile Unit to indicate if it was compiled with ARC

John McCall rjmccall at apple.com
Mon May 13 15:37:55 PDT 2013


On May 13, 2013, at 2:57 PM, Eric Christopher <echristo at gmail.com> wrote:
> On Mon, May 13, 2013 at 2:35 PM, John McCall <rjmccall at apple.com> wrote:
>> On May 13, 2013, at 1:44 PM, Eric Christopher <echristo at gmail.com> wrote:
>>> On Mon, May 13, 2013 at 1:25 PM, Adrian Prantl <aprantl at apple.com> wrote:
>>>> 
>>>> On May 13, 2013, at 11:57 AM, Eric Christopher <echristo at gmail.com> wrote:
>>>> 
>>>>> Eh? Curious what this will be used for?
>>>> This would be interesting mostly for the debugger but I guess tools like Instruments would also like to know.
>>> 
>>> In what way? I.e. why add it?
>> 
>> It's a language mode, Eric.  It's smaller in scope than C++ but on approximately the same scope as OpenCL.  Users have a reasonable expectation that source-aware tools like debuggers and profilers will know what language the source code is written in.
>> 
> 
> I'm perfectly aware of what ARC is and you'll notice I mentioned other
> options earlier. One of the current accepted dwarf issues is adding
> OpenCL to the language list. Whether or not this is worth adding a new
> language enum entry was one thing I had specifically brought up.

I am happy to leave you and Adrian to decide the best representation as long as you agree that this is important to represent *somehow*.  I was under the impression that that was in question.

John.



More information about the llvm-commits mailing list