This is an archive of the discontinued LLVM Phabricator instance.

Debug Info: Modified DIBuilder::createCompileUnit() to take DIFile instead of FileName and Directory. (LLVM part)
ClosedPublic

Authored by aaboud on Dec 14 2016, 9:08 AM.

Details

Summary

Changed DIBuilder::createCompileUnit() to take DIFile instead of FileName and Directory.
This way it will be easier to expand DIFile (e.g., to contain checksum) without the need to modify the createCompileUnit() API.

Diff Detail

Event Timeline

aaboud updated this revision to Diff 81396.Dec 14 2016, 9:08 AM
aaboud retitled this revision from to Debug Info: Modified DIBuilder::createCompileUnit() to take DIFile instead of FileName and Directory. (LLVM part).
aaboud updated this object.
aaboud added a reviewer: rnk.
aaboud added a subscriber: llvm-commits.
rnk accepted this revision.Dec 14 2016, 11:52 AM
rnk edited edge metadata.

Thanks!

This revision is now accepted and ready to land.Dec 14 2016, 11:52 AM
This revision was automatically updated to reflect the committed changes.
pcc added a subscriber: pcc.Dec 15 2016, 12:58 PM

This broke the Go bindings tests, can you please take a look?

In D27762#624190, @pcc wrote:

This broke the Go bindings tests, can you please take a look?

It seems djasper already fixed it few hours ago:

Fix go bindings after r289702 (hopefully, don't really know how to build
them, build.sh seems to be broken).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289775 91177308-0d34-0410-b5e6-96231b3b80d8
pcc added a comment.Dec 15 2016, 1:49 PM

You're right, sorry for the noise. But it looks like D27642 will have the same problem.

In D27762#624265, @pcc wrote:

You're right, sorry for the noise. But it looks like D27642 will have the same problem.

Hopefully now, as I am adding a default values for the extra parameters for DIFile creation.
But I will double check that before committing.

Thanks for pointing this out.