Adds missing debug information accessors to GlobalObject. This puts the finishing touches on cloning debug info in the echo tests.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
How is a user of this API supposed to map the unsigned Kind values to something meaningful? We don't have an enum LLVMMetadataKind, do we?
include/llvm-c/Core.h | ||
---|---|---|
2150 ↗ | (On Diff #163439) | Very small nit: Global. There's some code out there that generates a higher level API by parsing the C headers and inferring semantics from names, let's keep it easy to maintain. |
You’re supposed to be able to register your own kinds with LLVMContext::getMDKindID et al. I was planning to wrap those in a follow-up.
include/llvm-c/Core.h | ||
---|---|---|
2150 ↗ | (On Diff #163439) | I wanted to distinguish these from their unnamedspaced counterparts that seem to work exclusively with the parallel APIs in llvm::Instruction. Is there some middle ground naming scheme here or should I remove the Global bits and add GlobalObject support to the Instruction one? |
include/llvm-c/Core.h | ||
---|---|---|
2150 ↗ | (On Diff #163439) | Oh I just mean the argument name. |