This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Support checksums in llvm-c bindings
AbandonedPublic

Authored by scott.linder on Feb 22 2018, 8:21 AM.

Details

Summary

The DIFile C++ API supports checksums, but the C-API does not. This patch updates the C-API to support an optional checksum value.

Diff Detail

Event Timeline

scott.linder created this revision.Feb 22 2018, 8:21 AM

Do you have a use-case for the C API? We tend to update it only when necessary.
And when we do update it, it has to be backward-compatible IIUC. Adding new parameters to an existing API does not preserve that property.

JDevlieghere requested changes to this revision.Feb 22 2018, 10:12 AM

Do you have a use-case for the C API? We tend to update it only when necessary.
And when we do update it, it has to be backward-compatible IIUC. Adding new parameters to an existing API does not preserve that property.

Exactly. I also vaguely remember that you'd have to bump some minor version somewhere?

This revision now requires changes to proceed.Feb 22 2018, 10:12 AM
scott.linder abandoned this revision.Feb 22 2018, 12:37 PM

I have no immediate use, I just did not understand that these APIs are only updated as-needed. I think it makes the most sense to abandon this patch and update the source-embedding patch to not touch the API, and if in the future it becomes useful to add either or both to the C API we can worry about how to retain backwards compatibility.