This is an archive of the discontinued LLVM Phabricator instance.

[LLVM-C] Add DIBuilder bindings to create import declarations
ClosedPublic

Authored by CodaFi on Apr 26 2018, 7:29 PM.

Details

Summary

Add bindings to create import declarations for modules, functions, types, and other entities. This wraps the conveniences available in the existing DIBuilder API, but these seem C++-specific.

Diff Detail

Repository
rL LLVM

Event Timeline

CodaFi created this revision.Apr 26 2018, 7:29 PM
whitequark accepted this revision.Apr 27 2018, 1:19 PM

LGTM, thanks!

This revision is now accepted and ready to land.Apr 27 2018, 1:19 PM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Apr 28 2018, 5:49 PM

This has broken many bots with:

/b/sanitizer-x86_64-linux/build/llvm/tools/llvm-c-test/debuginfo.c:48:19: error: unused variable 'AliasImportedModule' [-Werror,-Wunused-variable]
  LLVMMetadataRef AliasImportedModule =
                  ^

Can you take a look?