This is an archive of the discontinued LLVM Phabricator instance.

Modifying expression code in MakeLoadImageUtilityFunction to be more consistent
ClosedPublic

Authored by shafik on Mar 16 2022, 11:08 AM.

Details

Summary

MakeLoadImageUtilityFunction() is not using extern "C" for external C functions and it is not using eLanguageTypeC_plus_plus. So I am modifying it to be consistent.

Diff Detail

Event Timeline

shafik created this revision.Mar 16 2022, 11:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2022, 11:08 AM
Herald added a subscriber: emaste. · View Herald Transcript
shafik requested review of this revision.Mar 16 2022, 11:08 AM

Note, we have a few tests that cover LoadImage:

TestCompletion.py
TestLoadUsingLazyBind.py
TestLoadUsingPaths.py

So they should be covering this code.

JDevlieghere accepted this revision.Mar 16 2022, 3:07 PM

We do the same thing for parsing the classes from the Objective-C runtime so this makes sense to me. LGTM.

This revision is now accepted and ready to land.Mar 16 2022, 3:07 PM
This revision was landed with ongoing or failed builds.Mar 17 2022, 8:53 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 8:53 AM

Did you check if we have other helper expressions with the same problem?

Did you check if we have other helper expressions with the same problem?

Yes, I could not find any other instances like this. They are not straight forward to find but I think I found all the places this could matter.