[PATCH] Update dwarf::ApplePropertyAttributes enum to meaningful values.

Eric Christopher echristo at gmail.com
Tue Oct 7 13:26:15 PDT 2014


On Tue, Oct 7, 2014 at 12:57 PM, Frederic Riss <friss at apple.com> wrote:
> ================
> Comment at: include/llvm/Support/Dwarf.h:784
> @@ -783,1 +783,3 @@
> +/// Contstants for the DW_APPLE_PROPERTY_attributes attribute.
> +/// Keep this list in sync with clang's DeclSpec.h ObjCPropertyAttributeKind.
>  enum ApplePropertyAttributes {
> ----------------
> dblaikie wrote:
>> Crazy idea: Could we do this the other way around, and remove ObjCPropertyAttributeKind in favor of using this enum directly?
>>
>> Probably not, but figured I'd mention it.
> I thought of that but I think there would be (rightful) resistance to having Sema code depend on the Dwarf header. In a followup patch for the dwarfdump functionality, I'll try to add coverage for most if not all of these, that will at least prevent us from breaking the current values unknowingly.
>

So it's not so much resistance to having Sema code depend on the dwarf
header... if we'd write the same code both ways. This code looks a bit
weird that way in that having the header wouldn't necessarily change
things.

Thoughts?

-eric




More information about the llvm-commits mailing list