Page MenuHomePhabricator

[LLVM-C] Add accessor to retrieve DINode's tag

Authored by CodaFi on Apr 26 2018, 6:48 PM.



Add LLVMDIMetadataGetTag to retrieve any DINode's DWARF tag.

Diff Detail


Event Timeline

CodaFi created this revision.Apr 26 2018, 6:48 PM

What's the actual use-case for this? I'm afraid that this might expose something that is more an implementation detail and would make the C API more brittle.

I've only seen it used to discriminate between different kinds of DIScopes. If it's really an implementation detail, I can abandon this patch.

I think it's worth asking on llvm-dev as to what kind of API is this.

whitequark resigned from this revision.May 23 2018, 2:39 PM

Resigning to get out of my queue--retag me if there's any progress.

CodaFi abandoned this revision.Sep 28 2018, 8:35 AM

Abandoning this revision to keep it out of the review queue.